From 51a4b1ad5f25ea29b94384e21c48152cce252b8b Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 3 Jan 2011 08:40:53 +0100 Subject: [PATCH] lib: Fixed obvious memory leak in simpleerror. --- lib/resp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/resp.c b/lib/resp.c index 7de5c90..2c0fa83 100644 --- a/lib/resp.c +++ b/lib/resp.c @@ -116,6 +116,7 @@ void simpleerror(int fd, int code, char *msg, char *fmt, ...) fwrite(buf.b, 1, buf.d, out); fclose(out); buffree(buf); + free(tmp); } void stdredir(struct hthead *req, int fd, int code, char *dst) -- 2.11.0