diff options
author | Philipp Tölke <toelke@in.tum.de> | 2010-11-04 17:26:57 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2010-11-04 17:26:57 +0000 |
commit | d73fea481adeb2e1e7904e48e9d93cd3c2cfa150 (patch) | |
tree | f935a264aca86edb42eb68556c785bc970223e59 | |
parent | c7446050aa9469ce67ade9aee66239f4eeb679a6 (diff) |
Mem-Leak
-rw-r--r-- | src/vpn/gnunet-daemon-vpn.c | 2 |
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); |