1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Revert "Merge pull request #205 from bryongloden/patch-2"

This reverts commit 783fcaea97
 The guard memory bytes should never be freed inside unity_malloc()
This commit is contained in:
jsalling
2016-08-09 00:51:38 -05:00
parent 783fcaea97
commit 06bae56d30

View File

@@ -207,9 +207,6 @@ 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;
}