From 5e7746bd324ec7910e0630eb873c8b5091331c0e Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 30 Dec 2006 06:08:54 +0000 Subject: [PATCH] coff-objfmt.c: Close small memory leak. svn path=/trunk/yasm/; revision=1727 --- modules/objfmts/coff/coff-objfmt.c | 3 +++ 1 file changed, 3 insertions(+) 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); }