Mercurial > pidgin.yaz
changeset 4875:26837f462a66
[gaim-migrate @ 5205]
faceprint inspired me to fix two memleaks in oscar. One leaks the size
of every message sent over a direct connection, the other leaks 10-20
bytes every 3 or 4 minutes. Meow.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 Mar 2003 19:43:58 +0000 |
parents | f98467b35b95 |
children | 9567b13d0e98 |
files | src/protocols/oscar/email.c src/protocols/oscar/ft.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/email.c Sun Mar 23 18:47:33 2003 +0000 +++ b/src/protocols/oscar/email.c Sun Mar 23 19:43:58 2003 +0000 @@ -128,6 +128,8 @@ if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) ret = userfunc(sess, rx, new, havenewmail); + aim_freetlvchain(&tlvlist); + return ret; }
--- a/src/protocols/oscar/ft.c Sun Mar 23 18:47:33 2003 +0000 +++ b/src/protocols/oscar/ft.c Sun Mar 23 19:43:58 2003 +0000 @@ -399,7 +399,7 @@ if (!sess || !conn || (conn->type != AIM_CONN_TYPE_RENDEZVOUS) || !msg) return -EINVAL; - if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_OFT, 0x01, len))) + if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_OFT, 0x01, 0))) return -ENOMEM; memcpy(fr->hdr.rend.magic, "ODC2", 4);