summaryrefslogtreecommitdiff
path: root/uri.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2017-05-27 14:44:36 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2017-05-27 15:59:18 +0200
commitd6b3645f9b72e55fece09c8d49f91e78a812b0f4 (patch)
tree013f1f338040db8334813cfae998afa452693ab9 /uri.c
parentcf60dbe461966f40fece3737f95859144b1d452d (diff)
downloadlibxml2-d6b3645f9b72e55fece09c8d49f91e78a812b0f4.tar.gz
Fix memory leak in xmlCanonicPath
Found with libFuzzer and ASan.
Diffstat (limited to 'uri.c')
-rw-r--r--uri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/uri.c b/uri.c
index 2bd5720d..530ce212 100644
--- a/uri.c
+++ b/uri.c
@@ -2455,6 +2455,7 @@ xmlCanonicPath(const xmlChar *path)
xmlFreeURI(uri);
return escURI;
}
+ xmlFree(escURI);
}
}