diff --git a/programs/dxf2dwg.c b/programs/dxf2dwg.c index 04448ed906..faf9be2c74 100644 --- a/programs/dxf2dwg.c +++ b/programs/dxf2dwg.c @@ -314,6 +314,8 @@ main (int argc, char *argv[]) if (error >= DWG_ERR_CRITICAL) { fprintf (stderr, "READ ERROR 0x%x %s\n", error, filename_in); + if (need_free) + free (filename_out); continue; }