Packet streams: fix memory leak on dlist allocation failure.
authorKp <kp@valhallalegends.com>
Sun, 1 Jun 2008 17:25:50 +0000 (12:25 -0500)
committerKp <kp@valhallalegends.com>
Mon, 1 Sep 2008 20:13:56 +0000 (15:13 -0500)
commit7ebc6fcc9308c92130d59641b9f85341e609708b
tree20c24e9f6407736df1b7f321523120d1d9ae9f9a
parentad10dc073b3684e02f5fa14449463c1122bd4cb2
Packet streams: fix memory leak on dlist allocation failure.

If silc_dlist_init fails to allocate a SilcDList for stream->process,
then silc_packet_stream_link_va leaks the newly allocated
SilcPacketProcess.  Fix that by calling silc_free(p) on the error path.
lib/silccore/silcpacket.c