--- a/xmlsecurityengine/xmlsec/src/xmlsec_keysmngr.c Fri Apr 16 16:57:34 2010 +0300
+++ b/xmlsecurityengine/xmlsec/src/xmlsec_keysmngr.c Mon May 03 14:14:40 2010 +0300
@@ -63,14 +63,16 @@
memset(mngr, 0, sizeof(xmlSecKeysMngr));
ret = xmlSecPtrListInitialize(&(mngr->storesList), xmlSecKeyDataStorePtrListId);
- if(ret < 0) {
- xmlSecError(XMLSEC_ERRORS_HERE,
+ if(ret < 0)
+ {
+ xmlSecError(XMLSEC_ERRORS_HERE,
NULL,
"xmlSecPtrListInitialize",
XMLSEC_ERRORS_R_XMLSEC_FAILED,
"xmlSecKeyDataStorePtrListId");
- return(NULL);
- }
+ xmlFree(mngr);
+ return(NULL);
+ }
return(mngr);
}