pidgin: 0ccdd3af: A couple more leak fixes.
sadrul at pidgin.im
sadrul at pidgin.im
Sat Apr 10 17:25:38 EDT 2010
-----------------------------------------------------------------
Revision: 0ccdd3af3ce1a841d971243d23614ae0630ecce3
Ancestor: 604260c9e7292e97965e739c46a85c6ddfb46a45
Author: sadrul at pidgin.im
Date: 2010-04-10T21:28:45
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0ccdd3af3ce1a841d971243d23614ae0630ecce3
Modified files:
libpurple/certificate.c
ChangeLog:
A couple more leak fixes.
-------------- next part --------------
============================================================
--- libpurple/certificate.c 5276d4a955fd0890b6446317e1aa79ff6065565c
+++ libpurple/certificate.c 4dc10a3e265ee4e357031d3f7e4eb068139d2898
@@ -714,6 +714,7 @@ x509_singleuse_start_verify (PurpleCerti
x509_singleuse_verify_cb );
/* Cleanup */
+ g_free(cn);
g_free(primary);
g_free(secondary);
g_free(sha_asc);
@@ -859,6 +860,7 @@ x509_ca_lazy_init(void)
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 @@ x509_tls_cached_check_subject_name(Purpl
"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);
More information about the Commits
mailing list