# HG changeset patch # User Matti Hamalainen # Date 1526067381 -10800 # Node ID 61a5bbaf8d5c85676825408c31e50ac25e3c22f8 # Parent 181163a6dd2453c8dcd56a7ea8aa0f144c436540 Plug some minor memory leaks in gfxconv. diff -r 181163a6dd24 -r 61a5bbaf8d5c tools/gfxconv.c --- 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),