Skip to content
Snippets Groups Projects
Commit dd530bb7 authored by Rodrigo Mesquita's avatar Rodrigo Mesquita :seedling: Committed by Marge Bot
Browse files

rts: free error message before returning

Fixes a memory leak in rts/linker/PEi386.c
parent 3d0806fc
No related branches found
No related tags found
No related merge requests found
...@@ -1865,6 +1865,7 @@ ocGetNames_PEi386 ( ObjectCode* oc ) ...@@ -1865,6 +1865,7 @@ ocGetNames_PEi386 ( ObjectCode* oc )
if (result != NULL || dllInstance == 0) { if (result != NULL || dllInstance == 0) {
errorBelch("Could not load `%s'. Reason: %s\n", errorBelch("Could not load `%s'. Reason: %s\n",
(char*)dllName, result); (char*)dllName, result);
stgFree((void*)result);
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment