lib: Fixed obvious memory leak in simpleerror.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 3 Jan 2011 07:40:53 +0000 (08:40 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 3 Jan 2011 07:40:53 +0000 (08:40 +0100)
lib/resp.c

index 7de5c90..2c0fa83 100644 (file)
@@ -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)