Fix some leaks. Header and footer are allocated, copied and not freed.
author |
Elliott Sales de Andrade <qulogic@pidgin.im> |
date |
Sun, 21 Nov 2010 08:47:08 +0000 |
parents |
ad11780ba8b9 |
children |
2de522fa534a |
files |
libpurple/protocols/msn/slpmsg.c libpurple/protocols/msn/slpmsg_part.c |
diffstat |
2 files changed, 6 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/libpurple/protocols/msn/slpmsg.c Sun Nov 21 06:58:45 2010 +0000
+++ b/libpurple/protocols/msn/slpmsg.c Sun Nov 21 08:47:08 2010 +0000
@@ -326,6 +326,9 @@
*ret_size = tmp - base;
+ g_free(header);
+ g_free(footer);
+
return base;
}
--- a/libpurple/protocols/msn/slpmsg_part.c Sun Nov 21 06:58:45 2010 +0000
+++ b/libpurple/protocols/msn/slpmsg_part.c Sun Nov 21 08:47:08 2010 +0000
@@ -154,6 +154,9 @@
*ret_size = tmp - base;
+ g_free(header);
+ g_free(footer);
+
return base;
}
/* We have received the message ack */