diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-02-06 16:33:48 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-02-06 16:33:48 +0100 |
commit | 17b59c01893dd45fcffb8057de43120e495c7c3d (patch) | |
tree | d37c362321963428c994d683ee5e8aebdece2c98 /camlibs/digigr8 | |
parent | 3b926ac604a512c197bdcfb5ae4a7bedd9578d1e (diff) | |
download | libgphoto2-17b59c01893dd45fcffb8057de43120e495c7c3d.tar.gz |
digigr8: free ppm in error node (Coverity)
1033339 Resource leak
Diffstat (limited to 'camlibs/digigr8')
-rw-r--r-- | camlibs/digigr8/library.c | 1 |
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) { |