From: Philipp Tölke Date: Thu, 4 Nov 2010 17:26:57 +0000 (+0000) Subject: Mem-Leak X-Git-Tag: initial-import-from-subversion-38251~19838 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d73fea481adeb2e1e7904e48e9d93cd3c2cfa150;p=oweals%2Fgnunet.git Mem-Leak --- diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index f7be9013e..f2403e11c 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c @@ -512,6 +512,8 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) { memcpy(&list->pkt, pkt, htons(pkt->hdr.size)); } + GNUNET_free(pkt); + GNUNET_CONTAINER_DLL_insert_after(answer_proc_head, answer_proc_tail, answer_proc_tail, list); GNUNET_SCHEDULER_add_write_file (sched, GNUNET_TIME_UNIT_FOREVER_REL, fh_to_helper, &helper_write, NULL);