mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-24 17:09:28 +08:00
Update unity_fixture.c
[../Unity-master/extras/fixture/src/unity_fixture.c:210]: (error) Memory leak: guard Found by https://github.com/bryongloden/cppcheck
This commit is contained in:

committed by
GitHub

parent
ad0c07c9ad
commit
b1d8388ab8
@ -207,6 +207,7 @@ void* unity_malloc(size_t size)
|
||||
mem = (char*)&(guard[1]);
|
||||
memcpy(&mem[size], end, sizeof(end));
|
||||
|
||||
free(guard);
|
||||
return (void*)mem;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user