From 17b59c01893dd45fcffb8057de43120e495c7c3d Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 6 Feb 2016 16:33:48 +0100 Subject: digigr8: free ppm in error node (Coverity) 1033339 Resource leak --- camlibs/digigr8/library.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.1