From e863227099e4fdd60bf5c6a87e2a274d4c89d683 Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Sun, 1 Jun 2008 11:05:22 +0200 Subject: [PATCH] Fix probable but rare memory leak --- src/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connection.c b/src/connection.c index 40e1c51..0829851 100644 --- a/src/connection.c +++ b/src/connection.c @@ -306,6 +306,8 @@ static int real_write_all(connection_t *cn) switch (ret) { case WRITE_ERROR: + /* we might as well free(line) here */ + list_add_first(cn->outgoing, line); return 1; case WRITE_KEEP: /* interrupted or not ready */