From: Peter Johnson Date: Sat, 30 Dec 2006 06:08:54 +0000 (-0000) Subject: coff-objfmt.c: Close small memory leak. X-Git-Tag: v0.6.0~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e7746bd324ec7910e0630eb873c8b5091331c0e;p=yasm coff-objfmt.c: Close small memory leak. svn path=/trunk/yasm/; revision=1727 --- diff --git a/modules/objfmts/coff/coff-objfmt.c b/modules/objfmts/coff/coff-objfmt.c index cc1d1e16..dce18cce 100644 --- a/modules/objfmts/coff/coff-objfmt.c +++ b/modules/objfmts/coff/coff-objfmt.c @@ -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); }