提交 06bae56d 编写于 作者: J jsalling

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

 This reverts commit 783fcaea
 The guard memory bytes should never be freed inside unity_malloc()
上级 783fcaea
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册