Merge pull request #205 from bryongloden/patch-2

Update unity_fixture.c (Thanks, Bryon!)
This commit is contained in:
Mark VanderVoord
2016-08-02 14:55:42 -04:00
committed by GitHub

View File

@ -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;
}