lib: Fixed obvious memory leak in simpleerror.
[ashd.git] / 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)