diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2010-08-08 20:35:11 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2010-08-08 20:35:11 +0000 |
commit | 9c57fe70c9d4c8b7201b1bdefd8a74e489213b6e (patch) | |
tree | d1276fd82ca4d118759c0f3a5efb7035af91ebbf | |
parent | 76731873a077e56c3bdc0d19c04a55214cd18b4f (diff) | |
download | libgphoto2-9c57fe70c9d4c8b7201b1bdefd8a74e489213b6e.tar.gz |
free (path) memory leak
git-svn-id: https://svn.code.sf.net/p/gphoto/code/branches/libgphoto2-2_4/libgphoto2@13233 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r-- | camlibs/ptp2/library.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 760da8b73..786970142 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -2749,7 +2749,10 @@ camera_wait_for_event (Camera *camera, int timeout, path->folder[0]='\0'; j = handle_to_n (newobject, camera); - if (j == PTP_HANDLER_SPECIAL) continue; + if (j == PTP_HANDLER_SPECIAL) { + free (path); + continue; + } obinfo = &camera->pl->params.objectinfo[j]; strcpy (path->name, obinfo->Filename); |