summaryrefslogtreecommitdiff
path: root/camlibs/digita
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2007-05-10 06:48:48 +0000
committerMarcus Meissner <marcus@jet.franken.de>2007-05-10 06:48:48 +0000
commitaea50e655fed8d60d87e4056420a6716b3e645da (patch)
tree59ef83bc2032f01bc6885ecb7952fc04c8a7fdef /camlibs/digita
parent7c27a71fe3d377e628666b9cb7dbdbf119ecc152 (diff)
downloadlibgphoto2-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.c2
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);