# HG changeset patch # User Ka-Hing Cheung # Date 1240957549 0 # Node ID f1b92f2ea41f3ee34cd0a83131202b0b7f05e5b9 # Parent a780680f090dc64ae9926b06564c0a4ce99629d5 fixes one more potential leak of the same type diff -r a780680f090d -r f1b92f2ea41f libpurple/protocols/oscar/family_locate.c --- a/libpurple/protocols/oscar/family_locate.c Tue Apr 28 22:21:10 2009 +0000 +++ b/libpurple/protocols/oscar/family_locate.c Tue Apr 28 22:25:49 2009 +0000 @@ -963,11 +963,14 @@ 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; }