diff src/protocols/oscar/ft.c @ 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 773135edda4a
children 9e50494f63a1
line wrap: on
line diff
--- 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);