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
This commit is contained in:
Marcus Meissner
2007-05-10 06:48:48 +00:00
parent 7c27a71fe3
commit aea50e655f

View File

@@ -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);