]> granicus.if.org Git - yasm/commitdiff
coff-objfmt.c: Close small memory leak.
authorPeter Johnson <peter@tortall.net>
Sat, 30 Dec 2006 06:08:54 +0000 (06:08 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 30 Dec 2006 06:08:54 +0000 (06:08 -0000)
svn path=/trunk/yasm/; revision=1727

modules/objfmts/coff/coff-objfmt.c

index cc1d1e1648e7a1440357ea457621f169c6fdadb3..dce18cced3004fb914c3bf5c3a8710c405b7338c 100644 (file)
@@ -1243,6 +1243,9 @@ coff_objfmt_output(yasm_objfmt *objfmt, FILE *f, int all_syms, yasm_dbgfmt *df,
 static void
 coff_objfmt_destroy(yasm_objfmt *objfmt)
 {
+    yasm_objfmt_coff *objfmt_coff = (yasm_objfmt_coff *)objfmt;
+    if (objfmt_coff->filesym_data->aux[0].fname)
+       yasm_xfree(objfmt_coff->filesym_data->aux[0].fname);
     yasm_xfree(objfmt);
 }