Mercurial > pidgin.yaz
diff libfaim/aim_im.c @ 284:bafaf1b68f9a
[gaim-migrate @ 294]
Hi.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 31 May 2000 04:06:51 +0000 |
parents | 0f14e6d8a51b |
children | 9d258a0aa560 |
line wrap: on
line diff
--- a/libfaim/aim_im.c Wed May 31 03:20:11 2000 +0000 +++ b/libfaim/aim_im.c Wed May 31 04:06:51 2000 +0000 @@ -527,10 +527,9 @@ snacid = aimutil_get32(command->data+6); snac = aim_remsnac(sess, snacid); - if (!snac) - { - printf("faim: msgerr: got an ICBM-failed error on an unknown SNAC ID! (%08lx)\n", snacid); - } + if (!snac) { + printf("faim: msgerr: got an ICBM-failed error on an unknown SNAC ID! (%08lx)\n", snacid); + } /* * Call client. @@ -541,8 +540,10 @@ else ret = 0; - free(snac->data); - free(snac); + if (snac) { + free(snac->data); + free(snac); + } return ret; }