summaryrefslogtreecommitdiff
path: root/src/object
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-05 18:48:43 -0500
committermidipix <writeonce@midipix.org>2017-02-05 18:48:43 -0500
commita604e1a6f6d62428e2eb0eaa8e0d385775022780 (patch)
tree062a4e901d9e1a8d29ad81be8982b161aa959734 /src/object
parent97d39b6755a05b2405051ff852b4c845b379bb05 (diff)
downloadmdso-a604e1a6f6d62428e2eb0eaa8e0d385775022780.tar.bz2
mdso-a604e1a6f6d62428e2eb0eaa8e0d385775022780.tar.xz
mdso_objgen_symfn(): free symfn as needed.
Diffstat (limited to 'src/object')
-rw-r--r--src/object/mdso_objgen_symfn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/object/mdso_objgen_symfn.c b/src/object/mdso_objgen_symfn.c
index 5644f4c..774d027 100644
--- a/src/object/mdso_objgen_symfn.c
+++ b/src/object/mdso_objgen_symfn.c
@@ -222,5 +222,8 @@ int mdso_objgen_symfn(
if (fwrite(symfn,objlen,1,fout) == 0)
return MDSO_FILE_ERROR(dctx);
+ if (!vobj)
+ free(symfn);
+
return 0;
}