From: Fredrik Tolf Date: Mon, 3 Jan 2011 07:40:53 +0000 (+0100) Subject: lib: Fixed obvious memory leak in simpleerror. X-Git-Tag: 0.5~6 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=51a4b1ad5f25ea29b94384e21c48152cce252b8b lib: Fixed obvious memory leak in simpleerror. --- 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)