提交 783fcaea 编写于 作者: M Mark VanderVoord 提交者: GitHub

Merge pull request #205 from bryongloden/patch-2

Update unity_fixture.c (Thanks, Bryon!)
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册