]> granicus.if.org Git - openjpeg/commitdiff
src/bin/jp3d/convert.c: add missing fclose() in error code path (#1018)
authorEven Rouault <even.rouault@spatialys.com>
Tue, 19 Sep 2017 10:48:12 +0000 (12:48 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Tue, 19 Sep 2017 10:48:12 +0000 (12:48 +0200)
src/bin/jp3d/convert.c

index 492b193bfe36ae15e90cec3ec247348d1c212eca..5d07bf19b264d4ff76fa20659a56adbaa8365492 100644 (file)
@@ -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;
         }