From ce199f42e77f972d6ee782b63492f6d861891053 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 19 Sep 2017 12:48:12 +0200 Subject: [PATCH] src/bin/jp3d/convert.c: add missing fclose() in error code path (#1018) --- src/bin/jp3d/convert.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/jp3d/convert.c b/src/bin/jp3d/convert.c index 492b193b..5d07bf19 100644 --- a/src/bin/jp3d/convert.c +++ b/src/bin/jp3d/convert.c @@ -316,6 +316,7 @@ opj_volume_t* pgxtovolume(char *relpath, opj_cparameters_t *parameters) cmptparm.bigendian = 0; } else { fprintf(stdout, "[ERROR] Bad pgx header, please check input file\n"); + fclose(f); return NULL; } -- 2.40.0