diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-02-06 16:09:30 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-02-06 16:09:30 +0100 |
commit | 04c78455361d9503045d9d14a606d24868d76771 (patch) | |
tree | b9211420f69ddd93dce52edf70fe3c5ec12d88bc | |
parent | ec202b96d9f5012c244d697fe8cd418e0d527248 (diff) | |
download | libgphoto2-04c78455361d9503045d9d14a606d24868d76771.tar.gz |
removed duplicate alloc of p_data (Coverity)
296077 Resource leak
-rw-r--r-- | camlibs/jl2005a/library.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/camlibs/jl2005a/library.c b/camlibs/jl2005a/library.c index 7cdc357d2..b2be814b9 100644 --- a/camlibs/jl2005a/library.c +++ b/camlibs/jl2005a/library.c @@ -206,11 +206,6 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, } /* Now get ready to put the data into a PPM image file. */ - p_data = malloc( w*h ); - if (!p_data) { - status = GP_ERROR_NO_MEMORY; - goto end; - } image_start=data+5; if (w == 176) { for (i=1; i < h; i +=4){ |