Skip to content

Commit

Permalink
malloc without free
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Mar 11, 2016
1 parent 0bf9dd2 commit 14fe195
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion luacom/tCOMUtil.cpp
Expand Up @@ -471,6 +471,7 @@ ITypeLib* tCOMUtil::LoadTypeLibFromCLSID(CLSID clsid,

if(pcClsid)
free(pcClsid);
free(bLibID);

return NULL;
}
Expand Down Expand Up @@ -513,8 +514,11 @@ ITypeLib* tCOMUtil::LoadTypeLibFromCLSID(CLSID clsid,
&version_major,
&version_minor);

if(!result)
if(!result) {
free(bLibID);
free(wcTypelib);
return NULL;
}
}

free(bLibID);
Expand Down

0 comments on commit 14fe195

Please sign in to comment.