From: sangwan.kwon Date: Thu, 17 Nov 2016 07:40:00 +0000 (+0900) Subject: Fix memory leak on xmlSecProxyCtxAdd X-Git-Tag: accepted/tizen/common/20161202.233134~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5eeb9e657b60ff2d762c388421f23a67dd6f64bd;p=platform%2Fupstream%2Fxmlsec1.git Fix memory leak on xmlSecProxyCtxAdd Change-Id: I5ad57b688700be114296a0c6a959158eb03c4570 Signed-off-by: sangwan.kwon --- 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;