summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2016-02-06 16:49:36 +0100
committerMarcus Meissner <marcus@jet.franken.de>2016-02-06 16:49:36 +0100
commite1d281caea28024fa0c33be071b377c6fd2b397d (patch)
tree49cf584654600e4d5fabff51bf9328057a952677
parent3397efba1c9dabfe4d88c6ecbe818a92dc2563bc (diff)
downloadlibgphoto2-e1d281caea28024fa0c33be071b377c6fd2b397d.tar.gz
avoid leaking memory in traverse_tree (Coverity)
1033355 Resource leak
-rw-r--r--camlibs/ptp2/olympus-wrap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camlibs/ptp2/olympus-wrap.c b/camlibs/ptp2/olympus-wrap.c
index eeabd2339..3ba678464 100644
--- a/camlibs/ptp2/olympus-wrap.c
+++ b/camlibs/ptp2/olympus-wrap.c
@@ -557,6 +557,7 @@ traverse_tree (PTPParams *params, int depth, xmlNodePtr node) {
ptp_debug(params,"%scontent %s", xx, xchar);
traverse_tree (params, depth+1,xmlFirstElementChild (next));
} while ((next = xmlNextElementSibling (next)));
+ free (xx);
return TRUE;
}