Fix memory leak on xmlSecProxyCtxAdd 14/98414/1
authorsangwan.kwon <sangwan.kwon@samsung.com>
Thu, 17 Nov 2016 07:40:00 +0000 (16:40 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Thu, 17 Nov 2016 07:40:00 +0000 (16:40 +0900)
Change-Id: I5ad57b688700be114296a0c6a959158eb03c4570
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
src/xmldsig.c

index 658ff65..299ea57 100644 (file)
@@ -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;