[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] More anti-leak work.



Update of /home/minion/cvsroot/src/minion/src
In directory moria.mit.edu:/tmp/cvs-serv4914/src

Modified Files:
	tls.c 
Log Message:
More anti-leak work.

benchmark, test:
- More code to test tls functionality for leaks.

MMTPServer: 
- Try harder to avoid cyclic garbage, so GC has an easier time.

tls.c:
- Kill another leak.




Index: tls.c
===================================================================
RCS file: /home/minion/cvsroot/src/minion/src/tls.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- tls.c	3 Jun 2003 16:31:05 -0000	1.23
+++ tls.c	3 Jun 2003 17:28:12 -0000	1.24
@@ -549,6 +549,7 @@
                 mm_SSL_ERR(0); return NULL;
         }
         pkey = X509_get_pubkey(cert);
+        X509_free(cert);
         if (!(rsa = EVP_PKEY_get1_RSA(pkey))) {
                 EVP_PKEY_free(pkey); mm_SSL_ERR(0); return NULL;
         }