diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2007-05-11 16:58:20 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2007-05-11 16:58:20 +0000 |
commit | 159e5066bfb085a3bafb2652b00cb5912d1ffa64 (patch) | |
tree | 8cf6627ef0fe6d394f3a5ddc739f96dfbf41752f /camlibs/kodak/dc120 | |
parent | a7535f9d7f1d36e735f23764eff5866452110f96 (diff) | |
download | libgphoto2-159e5066bfb085a3bafb2652b00cb5912d1ffa64.tar.gz |
added missing free in exit path (CID 46)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10179 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/kodak/dc120')
-rw-r--r-- | camlibs/kodak/dc120/library.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camlibs/kodak/dc120/library.c b/camlibs/kodak/dc120/library.c index 2a1bbe009..9216e9766 100644 --- a/camlibs/kodak/dc120/library.c +++ b/camlibs/kodak/dc120/library.c @@ -289,6 +289,8 @@ int dc120_get_status (Camera *camera, Kodak_dc120_status *status, GPContext *con gp_file_get_data_and_size( file, &data, &size ); if( size<122 ) { + gp_file_free (file); + free (p); return (GP_ERROR); } |