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

Update unity_fixture.c

[../Unity-master/extras/fixture/src/unity_fixture.c:210]: (error) Memory leak: guard

Found by https://github.com/bryongloden/cppcheck
上级 ad0c07c9
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册