You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by ka...@apache.org on 2007/08/27 11:31:39 UTC
svn commit: r570054 - in /webservices/rampart/trunk/c/src/omxmlsec:
openssl/rsa.c openssl/x509.c x509_cert.c
Author: kaushalye
Date: Mon Aug 27 02:31:38 2007
New Revision: 570054
URL: http://svn.apache.org/viewvc?rev=570054&view=rev
Log:
Memory leak fixed
Modified:
webservices/rampart/trunk/c/src/omxmlsec/openssl/rsa.c
webservices/rampart/trunk/c/src/omxmlsec/openssl/x509.c
webservices/rampart/trunk/c/src/omxmlsec/x509_cert.c
Modified: webservices/rampart/trunk/c/src/omxmlsec/openssl/rsa.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/omxmlsec/openssl/rsa.c?rev=570054&r1=570053&r2=570054&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/omxmlsec/openssl/rsa.c (original)
+++ webservices/rampart/trunk/c/src/omxmlsec/openssl/rsa.c Mon Aug 27 02:31:38 2007
@@ -71,6 +71,7 @@
return (-1);
}
oxs_buffer_populate(out, env, encrypted, ret);
+
return ret;
}
Modified: webservices/rampart/trunk/c/src/omxmlsec/openssl/x509.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/omxmlsec/openssl/x509.c?rev=570054&r1=570053&r2=570054&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/omxmlsec/openssl/x509.c (original)
+++ webservices/rampart/trunk/c/src/omxmlsec/openssl/x509.c Mon Aug 27 02:31:38 2007
@@ -301,8 +301,10 @@
EVP_EncodeUpdate(&ctx, (unsigned char*)output, &len, (unsigned char*)buf, key_id->length);
EVP_EncodeFinal(&ctx, (unsigned char*)(output+len), &ret);
-
+ /*Free key_id*/
M_ASN1_OCTET_STRING_free(key_id);
+ key_id = NULL;
+
ret += len;
ski = axutil_strdup(env, output);
return ski;
Modified: webservices/rampart/trunk/c/src/omxmlsec/x509_cert.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/omxmlsec/x509_cert.c?rev=570054&r1=570053&r2=570054&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/omxmlsec/x509_cert.c (original)
+++ webservices/rampart/trunk/c/src/omxmlsec/x509_cert.c Mon Aug 27 02:31:38 2007
@@ -103,8 +103,8 @@
x509_cert->public_key = NULL;
}
- AXIS2_FREE(env->allocator, x509_cert);
- x509_cert = NULL;
+ /*AXIS2_FREE(env->allocator, x509_cert);
+ x509_cert = NULL;*/
return AXIS2_SUCCESS;
}