diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-02-06 16:02:32 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-02-06 16:02:32 +0100 |
commit | 3ebb68bfedf11f158926be506e2c5e28690fd7e3 (patch) | |
tree | b10d44cff779341b236589b5a9d33765b3ff7a55 | |
parent | 9bc8f77029dcfb47aa81d0eda9f018c98f1529d2 (diff) | |
download | libgphoto2-3ebb68bfedf11f158926be506e2c5e28690fd7e3.tar.gz |
free the allocated CameraFile (Coverity)
296046 Resource leak
-rw-r--r-- | camlibs/kodak/dc120/library.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camlibs/kodak/dc120/library.c b/camlibs/kodak/dc120/library.c index 8382144fc..ca1949a34 100644 --- a/camlibs/kodak/dc120/library.c +++ b/camlibs/kodak/dc120/library.c @@ -486,7 +486,8 @@ static int dc120_get_file_preview (Camera *camera, CameraFile *file, int file_nu gp_file_append(file, buf, strlen(buf)); } - sleep(1); /* FIXME: why? */ + gp_file_free(f); + /* sleep(1); */ /* FIXME: why? ... Marcus: removed it for now.*/ return (GP_OK); } |