summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsangwan.kwon <sangwan.kwon@samsung.com>2016-11-17 07:40:00 (GMT)
committersangwan.kwon <sangwan.kwon@samsung.com>2016-11-17 07:40:00 (GMT)
commit5eeb9e657b60ff2d762c388421f23a67dd6f64bd (patch)
tree06408d3abc6e8d7adc07efd39a8873a88f23938c
parent37ef959520d171075d546e500dcd75a09f0ee507 (diff)
downloadxmlsec1-5eeb9e657b60ff2d762c388421f23a67dd6f64bd.zip
xmlsec1-5eeb9e657b60ff2d762c388421f23a67dd6f64bd.tar.gz
xmlsec1-5eeb9e657b60ff2d762c388421f23a67dd6f64bd.tar.bz2
Fix memory leak on xmlSecProxyCtxAddrefs/changes/14/98414/1
Change-Id: I5ad57b688700be114296a0c6a959158eb03c4570 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
-rw-r--r--src/xmldsig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmldsig.c b/src/xmldsig.c
index 658ff65..299ea57 100644
--- a/src/xmldsig.c
+++ b/src/xmldsig.c
@@ -242,6 +242,7 @@ xmlSecProxyCtxAdd(xmlSecProxyCtxPtr* proxyCtxPtrPtr, const xmlChar* uri) {
XMLSEC_ERRORS_R_MALLOC_FAILED,
"node=%s",
xmlSecErrorsSafeString(uri));
+ xmlFree(pc);
return(-1);
}
pc->next = NULL;