pidgin: 8e454301: Fix some leaks. Header and footer are al...
qulogic at pidgin.im
qulogic at pidgin.im
Sun Nov 21 05:07:40 EST 2010
----------------------------------------------------------------------
Revision: 8e4543015b56f63d3d682112e6882a3bdeaed550
Parent: 155c91a4c60106b35cf346ccf4645e2eac7a40bc
Author: qulogic at pidgin.im
Date: 11/21/10 03:47:08
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8e4543015b56f63d3d682112e6882a3bdeaed550
Changelog:
Fix some leaks. Header and footer are allocated, copied and not freed.
Changes against parent 155c91a4c60106b35cf346ccf4645e2eac7a40bc
patched libpurple/protocols/msn/slpmsg.c
patched libpurple/protocols/msn/slpmsg_part.c
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slpmsg.c 1ef2415a3402de92e83446adea31677ab917d2e6
+++ libpurple/protocols/msn/slpmsg.c 9ec4b54c37791afcb10cc310fb5582cadbed9c5a
@@ -326,6 +326,9 @@ char *msn_slpmsg_serialize(MsnSlpMessage
*ret_size = tmp - base;
+ g_free(header);
+ g_free(footer);
+
return base;
}
============================================================
--- libpurple/protocols/msn/slpmsg_part.c 1a98f1ee8cf302e2583a2d12e2b94abeaf5ec1af
+++ libpurple/protocols/msn/slpmsg_part.c 09d7aae39c1436eeb63d500ce29149baa8c5952e
@@ -154,6 +154,9 @@ char *msn_slpmsgpart_serialize(MsnSlpMes
*ret_size = tmp - base;
+ g_free(header);
+ g_free(footer);
+
return base;
}
/* We have received the message ack */
More information about the Commits
mailing list