Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
4874:f98467b35b95 | 4875:26837f462a66 |
---|---|
397 fu8_t *hdr; | 397 fu8_t *hdr; |
398 | 398 |
399 if (!sess || !conn || (conn->type != AIM_CONN_TYPE_RENDEZVOUS) || !msg) | 399 if (!sess || !conn || (conn->type != AIM_CONN_TYPE_RENDEZVOUS) || !msg) |
400 return -EINVAL; | 400 return -EINVAL; |
401 | 401 |
402 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_OFT, 0x01, len))) | 402 if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_OFT, 0x01, 0))) |
403 return -ENOMEM; | 403 return -ENOMEM; |
404 | 404 |
405 memcpy(fr->hdr.rend.magic, "ODC2", 4); | 405 memcpy(fr->hdr.rend.magic, "ODC2", 4); |
406 fr->hdr.rend.hdrlen = hdrlen; | 406 fr->hdr.rend.hdrlen = hdrlen; |
407 | 407 |