ketor / baiduhook

Automatically exported from code.google.com/p/baiduhook
19 stars 19 forks source link

[HookImpl.cpp]AttachFuncLib函数有可能产生内存泄漏 #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
int HookImpl::AttachFuncLib(const BinaryFile::Symbol &symbol, void *hook_func, 
void **pold_func)

Line 42malloc的内存,如果在Line 48 56 
61条件判断失败跳转的话,都可能产生内存泄漏

Original issue reported on code.google.com by cfeng12...@gmail.com on 29 Sep 2013 at 6:26