changeset 26742:a780680f090d

merge of '4a2d7c0b8570558cada900f60d7696231954c231' and 'e97dfd6e35de719fe7bffabef680c282f4702341'
author Ka-Hing Cheung <khc@hxbc.us>
date Tue, 28 Apr 2009 22:21:10 +0000
parents 73ac2cd2cba3 (current diff) 83ae84d4b000 (diff)
children f1b92f2ea41f
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_chatnav.c	Tue Apr 28 21:15:30 2009 +0000
+++ b/libpurple/protocols/oscar/family_chatnav.c	Tue Apr 28 22:21:10 2009 +0000
@@ -44,6 +44,8 @@
 
 	if (snac2->family != SNAC_FAMILY_CHATNAV) {
 		purple_debug_warning("oscar", "chatnav error: received response that maps to corrupt request (fam=%04x)\n", snac2->family);
+		g_free(snac2->data);
+		g_free(snac2);
 		return 0;
 	}
 
@@ -462,6 +464,8 @@
 
 	if (snac2->family != SNAC_FAMILY_CHATNAV) {
 		purple_debug_misc("oscar", "faim: chatnav_parse_info: received response that maps to corrupt request! (fam=%04x)\n", snac2->family);
+		g_free(snac2->data);
+		g_free(snac2);
 		return 0;
 	}