[xmlsec] FW: Free/Destroy versus Memory Leak
Aleksey Sanin
aleksey at aleksey.com
Mon May 1 21:16:33 PDT 2006
OK, I believe that the attached patch fixes the memory leak though
I don't see it in Purify. Please, let me know if it works for you
or not.
Thank you in advance!
Aleksey
-------------- next part --------------
Index: src/mscrypto/x509.c
===================================================================
RCS file: /cvs/gnome/xmlsec/src/mscrypto/x509.c,v
retrieving revision 1.4
diff -u -w -r1.4 x509.c
--- src/mscrypto/x509.c 1 Mar 2005 03:47:43 -0000 1.4
+++ src/mscrypto/x509.c 2 May 2006 04:13:13 -0000
@@ -367,6 +367,7 @@
XMLSEC_ERRORS_NO_MESSAGE);
return(-1);
}
+ CertFreeCertificateContext(cert);
ctx->numCerts++;
return(0);
More information about the xmlsec
mailing list