Memoryleak
authorStefan de Konink <stefan@konink.de>
Thu, 13 May 2010 20:47:58 +0000 (13 22:47 +0200)
committerStefan de Konink <stefan@konink.de>
Thu, 13 May 2010 20:47:58 +0000 (13 22:47 +0200)
mistral.c

index 6645dbb..b00701d 100644 (file)
--- a/mistral.c
+++ b/mistral.c
@@ -99,6 +99,7 @@ static void goodbye_cb(struct ev_loop *loop, struct ev_timer *w, int revents) {
        ev_timer_stop(loop, &cli->ev_timeout);
 
        close(cli->fd);
+       free(cli);
 }
 
 static void write_cb(struct ev_loop *loop, struct ev_io *w, int revents)