aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2010-11-04 17:26:57 +0000
committerPhilipp Tölke <toelke@in.tum.de>2010-11-04 17:26:57 +0000
commitd73fea481adeb2e1e7904e48e9d93cd3c2cfa150 (patch)
treef935a264aca86edb42eb68556c785bc970223e59
parentc7446050aa9469ce67ade9aee66239f4eeb679a6 (diff)
Mem-Leak
-rw-r--r--src/vpn/gnunet-daemon-vpn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c
index f7be9013ec..f2403e11cc 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);