diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2007-05-10 06:48:48 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2007-05-10 06:48:48 +0000 |
commit | aea50e655fed8d60d87e4056420a6716b3e645da (patch) | |
tree | 59ef83bc2032f01bc6885ecb7952fc04c8a7fdef /camlibs/digita | |
parent | 7c27a71fe3d377e628666b9cb7dbdbf119ecc152 (diff) | |
download | libgphoto2-aea50e655fed8d60d87e4056420a6716b3e645da.tar.gz |
added 2 missing free()s (CID 65)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10161 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/digita')
-rw-r--r-- | camlibs/digita/digita.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camlibs/digita/digita.c b/camlibs/digita/digita.c index a958830a3..5bda74679 100644 --- a/camlibs/digita/digita.c +++ b/camlibs/digita/digita.c @@ -241,6 +241,7 @@ static unsigned char *digita_file_get(Camera *camera, const char *folder, if (digita_get_file_data(camera->pl, thumbnail, &fn, &tag, data) < 0) { GP_DEBUG( "digita_get_picture: digita_get_file_data failed"); + free (data); return NULL; } @@ -268,6 +269,7 @@ static unsigned char *digita_file_get(Camera *camera, const char *folder, if (digita_get_file_data(camera->pl, thumbnail, &fn, &tag, data + pos) < 0) { GP_DEBUG ("digita_get_file_data failed."); + free (data); return NULL; } pos += ntohl(tag.length); |