comparison libpurple/protocols/msn/slpmsg_part.c @ 31375:4e097dfb7784

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 4b1eecab50e8
children 2de522fa534a
comparison
equal deleted inserted replaced
31374:ad11780ba8b9 31375:4e097dfb7784
151 siz = sizeof(MsnP2PFooter); 151 siz = sizeof(MsnP2PFooter);
152 memcpy(tmp, (char*)footer, siz); 152 memcpy(tmp, (char*)footer, siz);
153 tmp += siz; 153 tmp += siz;
154 154
155 *ret_size = tmp - base; 155 *ret_size = tmp - base;
156
157 g_free(header);
158 g_free(footer);
156 159
157 return base; 160 return base;
158 } 161 }
159 /* We have received the message ack */ 162 /* We have received the message ack */
160 void 163 void