summaryrefslogtreecommitdiff
path: root/camlibs/digigr8
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2016-02-06 16:33:48 +0100
committerMarcus Meissner <marcus@jet.franken.de>2016-02-06 16:33:48 +0100
commit17b59c01893dd45fcffb8057de43120e495c7c3d (patch)
treed37c362321963428c994d683ee5e8aebdece2c98 /camlibs/digigr8
parent3b926ac604a512c197bdcfb5ae4a7bedd9578d1e (diff)
downloadlibgphoto2-17b59c01893dd45fcffb8057de43120e495c7c3d.tar.gz
digigr8: free ppm in error node (Coverity)
1033339 Resource leak
Diffstat (limited to 'camlibs/digigr8')
-rw-r--r--camlibs/digigr8/library.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camlibs/digigr8/library.c b/camlibs/digigr8/library.c
index 609b17df6..6f647bbb1 100644
--- a/camlibs/digigr8/library.c
+++ b/camlibs/digigr8/library.c
@@ -289,6 +289,7 @@ get_file_func(CameraFilesystem *fs, const char *folder, const char *filename,
p_data = malloc(w * h);
if (!p_data) {
status = GP_ERROR_NO_MEMORY;
+ free (ppm);
goto end;
}
if(comp_ratio) {