pidgin: d444c843: Fix possible leak.

qulogic at pidgin.im qulogic at pidgin.im
Sun Nov 21 22:10:58 EST 2010


----------------------------------------------------------------------
Revision: d444c843db4eab2415c8ca21b9f3d7d23d866ceb
Parent:   610f130f9748cb29c000b1421d7a916d9944ef6b
Author:   qulogic at pidgin.im
Date:     11/21/10 19:01:39
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d444c843db4eab2415c8ca21b9f3d7d23d866ceb

Changelog: 

Fix possible leak.

Changes against parent 610f130f9748cb29c000b1421d7a916d9944ef6b

  patched  libpurple/protocols/msn/slpmsg.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slpmsg.c	9ec4b54c37791afcb10cc310fb5582cadbed9c5a
+++ libpurple/protocols/msn/slpmsg.c	fcd40b2bf43dbd607409779481fd65bfe87dabd1
@@ -61,13 +61,13 @@ MsnSlpMessage *msn_slpmsg_new_from_data(
 	const char *tmp;
 	int body_len;
 
-	tmp = data;
-	slpmsg = msn_slpmsg_new(NULL);
-
 	if (data_len < sizeof(*header)) {
 		return NULL;
 	}
 
+	tmp = data;
+	slpmsg = msn_slpmsg_new(NULL);
+
 	/* Extract the binary SLP header */
 	slpmsg->header = msn_p2p_header_from_wire((MsnP2PHeader*)tmp);
 


More information about the Commits mailing list