diff --git a/extras/fixture/src/unity_fixture.c b/extras/fixture/src/unity_fixture.c index 7e4d1e8ac2d30997fcdfc21c6a27695ffed4c4e7..79d925ee013fd67320131ebbd0165defb9910d6b 100644 --- a/extras/fixture/src/unity_fixture.c +++ b/extras/fixture/src/unity_fixture.c @@ -207,6 +207,9 @@ 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; }