提交 0737b411 编写于 作者: B Bryon Gloden, CISSP® 提交者: GitHub

Update unity_fixture.c

Free guard if UNITY_EXCLUDE_STDLIB_MALLOC is not defined. 👍

Thanks @ for the hint.
上级 b1d8388a
......@@ -207,7 +207,9 @@ void* unity_malloc(size_t size)
mem = (char*)&(guard[1]);
memcpy(&mem[size], end, sizeof(end));
#ifndef UNITY_EXCLUDE_STDLIB_MALLOC
free(guard);
#endif
return (void*)mem;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册