mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-28 05:18:17 +08:00
Merge pull request #205 from bryongloden/patch-2
Update unity_fixture.c (Thanks, Bryon!)
This commit is contained in:
@ -207,6 +207,9 @@ void* unity_malloc(size_t size)
|
|||||||
mem = (char*)&(guard[1]);
|
mem = (char*)&(guard[1]);
|
||||||
memcpy(&mem[size], end, sizeof(end));
|
memcpy(&mem[size], end, sizeof(end));
|
||||||
|
|
||||||
|
#ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_
|
||||||
|
free(guard);
|
||||||
|
#endif
|
||||||
return (void*)mem;
|
return (void*)mem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user