提交 4489bcd9 编写于 作者: D DannyIsFunny

test=develop

上级 917620e8
...@@ -34,7 +34,7 @@ void* TargetWrapper<TARGET(kHost)>::Malloc(size_t size) { ...@@ -34,7 +34,7 @@ void* TargetWrapper<TARGET(kHost)>::Malloc(size_t size) {
return r; return r;
} }
void TargetWrapper<TARGET(kHost)>::Free(void* ptr) { void TargetWrapper<TARGET(kHost)>::Free(void* ptr) {
ptr=Malloc(1); ptr = Malloc(1);
if (ptr) { if (ptr) {
free(static_cast<void**>(ptr)[-1]); free(static_cast<void**>(ptr)[-1]);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册