# HG changeset patch # User Mark Doliner # Date 1048448638 0 # Node ID 26837f462a6676828b9323a3ce16b24672eed6d6 # Parent f98467b35b9524dd2cc0e655b6c1f01515686103 [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 diff -r f98467b35b95 -r 26837f462a66 src/protocols/oscar/email.c --- 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; } diff -r f98467b35b95 -r 26837f462a66 src/protocols/oscar/ft.c --- 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);