summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;
}