From 06bae56d30220246e7d3a30a3a54ff10ec8b4122 Mon Sep 17 00:00:00 2001 From: jsalling Date: Tue, 9 Aug 2016 00:51:38 -0500 Subject: [PATCH] Revert "Merge pull request #205 from bryongloden/patch-2" This reverts commit 783fcaea97cf11975d75254742e800d7759fdbd0 The guard memory bytes should never be freed inside unity_malloc() --- extras/fixture/src/unity_fixture.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/extras/fixture/src/unity_fixture.c b/extras/fixture/src/unity_fixture.c index 79d925e..7e4d1e8 100644 --- a/extras/fixture/src/unity_fixture.c +++ b/extras/fixture/src/unity_fixture.c @@ -207,9 +207,6 @@ void* unity_malloc(size_t size) mem = (char*)&(guard[1]); memcpy(&mem[size], end, sizeof(end)); -#ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_ - free(guard); -#endif return (void*)mem; } -- GitLab