changeset 1514:61a5bbaf8d5c

Plug some minor memory leaks in gfxconv.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 11 May 2018 22:36:21 +0300
parents 181163a6dd24
children 66c75f6982e2
files tools/gfxconv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Fri May 11 22:26:17 2018 +0300
+++ b/tools/gfxconv.c	Fri May 11 22:36:21 2018 +0300
@@ -1696,7 +1696,7 @@
         else
         {
             dmErrorMsg("Could not decode input image: %s.\n", dmErrorStr(res));
-            exit(3);
+            goto error;
         }
     }
 
@@ -1716,7 +1716,7 @@
     if (optInFormat == FFMT_AUTO)
     {
         dmErrorMsg("No input format specified, and could not be determined automatically.\n");
-        exit(1);
+        goto error;
     }
 
     int inFormat = dmGetConvFormat(optInFormat, optInSubFormat),