diff --git a/extras/fixture/src/unity_fixture.c b/extras/fixture/src/unity_fixture.c index 8130931..79d925e 100644 --- a/extras/fixture/src/unity_fixture.c +++ b/extras/fixture/src/unity_fixture.c @@ -207,7 +207,7 @@ void* unity_malloc(size_t size) mem = (char*)&(guard[1]); memcpy(&mem[size], end, sizeof(end)); -#ifndef UNITY_EXCLUDE_STDLIB_MALLOC +#ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_ free(guard); #endif return (void*)mem;