pidgin: 2448add8: fixes one more potential leak of the sam...

khc at pidgin.im khc at pidgin.im
Tue Apr 28 18:31:07 EDT 2009


-----------------------------------------------------------------
Revision: 2448add898018349b64e4eb5550adb03644790db
Ancestor: 9c559dfd66ddba677db451ac8d37c885cd60da57
Author: khc at pidgin.im
Date: 2009-04-28T22:25:49
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2448add898018349b64e4eb5550adb03644790db

Modified files:
        libpurple/protocols/oscar/family_locate.c

ChangeLog: 

fixes one more potential leak of the same type


-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/family_locate.c	68cccf4e5934114db7bbd8c61a3e56fee56b7c3f
+++ libpurple/protocols/oscar/family_locate.c	3aa1fd6c3a338cc7a88856361056860d47f0373d
@@ -963,11 +963,14 @@ error(OscarData *od, FlapConnection *con
 
 	if ((snac2->family != SNAC_FAMILY_LOCATE) && (snac2->type != 0x0015)) {
 		purple_debug_misc("oscar", "locate error: received response from invalid request! %d\n", snac2->family);
+		g_free(snac2->data);
+		g_free(snac2);
 		return 0;
 	}
 
 	if (!(bn = snac2->data)) {
 		purple_debug_misc("oscar", "locate error: received response from request without a buddy name!\n");
+		g_free(snac2);
 		return 0;
 	}
 


More information about the Commits mailing list