From: pk910 Date: Thu, 18 Oct 2012 22:48:36 +0000 (+0200) Subject: fixed timeq (free name before executing the callback) X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=074dc68981c4da0776f74bad4cec420824ad7df0 fixed timeq (free name before executing the callback) --- diff --git a/src/timeq.c b/src/timeq.c index c18227a..ec9ea3e 100644 --- a/src/timeq.c +++ b/src/timeq.c @@ -30,6 +30,10 @@ static IOHANDLER_CALLBACK(timeq_callback) { struct timeq_entry *entry = event->iofd->data; switch(event->type) { case IOEVENT_TIMEOUT: + if(entry->name) { + free(entry->name); + entry->name = NULL; + } entry->callback(entry->data); entry->iofd = NULL; timeq_del(entry);