Skip to content
Snippets Groups Projects
Commit 3a033e29 authored by Rodrigo Mesquita's avatar Rodrigo Mesquita :seedling: Committed by Ben Gamari
Browse files

rts: free error message before returning

Fixes a memory leak in rts/linker/PEi386.c

(cherry picked from commit dd530bb7)
parent 3dc62f2e
No related branches found
No related tags found
No related merge requests found
......@@ -1862,6 +1862,7 @@ ocGetNames_PEi386 ( ObjectCode* oc )
if (result != NULL || dllInstance == 0) {
errorBelch("Could not load `%s'. Reason: %s\n",
(char*)dllName, result);
stgFree((void*)result);
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