Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
240d9bc
)
lib: Fixed obvious memory leak in simpleerror.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 3 Jan 2011 07:40:53 +0000
(08:40 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 3 Jan 2011 07:40:53 +0000
(08:40 +0100)
lib/resp.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/resp.c
b/lib/resp.c
index
7de5c90
..
2c0fa83
100644
(file)
--- 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)