changeset 30110:8474495b9dfc

A couple more leak fixes.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 10 Apr 2010 21:28:45 +0000
parents ccaaee2a8e59
children 519905ba5f75
files libpurple/certificate.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Sat Apr 10 21:28:07 2010 +0000
+++ b/libpurple/certificate.c	Sat Apr 10 21:28:45 2010 +0000
@@ -714,6 +714,7 @@
 		x509_singleuse_verify_cb );
 
 	/* Cleanup */
+	g_free(cn);
 	g_free(primary);
 	g_free(secondary);
 	g_free(sha_asc);
@@ -859,6 +860,7 @@
 					purple_debug_info("certificate/x509/ca",
 							  "Loaded %s from %s\n",
 							  name ? name : "(unknown)", fullpath);
+					g_free(name);
 				} else {
 					purple_debug_error("certificate/x509/ca",
 							  "Failed to load certificate from %s\n",
@@ -1535,6 +1537,7 @@
 				  "Name mismatch: Certificate given for %s "
 				  "has a name of %s\n",
 				  vrq->subject_name, sn);
+		g_free(sn);
 	}
 
 	x509_tls_cached_complete(vrq, flags);