projects
/
darkstat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd3f47f
)
Fix a memory leak triggered by 404s.
author
Malte S. Stretz
<mss@apache.org>
Wed, 1 Sep 2010 11:43:05 +0000
(13:43 +0200)
committer
Emil Mikulic
<emikulic@gmail.com>
Sat, 28 May 2011 10:10:53 +0000
(20:10 +1000)
http.c
patch
|
blob
|
history
diff --git
a/http.c
b/http.c
index
7755b9b
..
0c9b141
100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-639,6
+639,7
@@
static void process_get(struct connection *conn)
if (buf == NULL) {
default_reply(conn, 404, "Not Found",
"The page you requested could not be found.");
+ free(decoded_url);
return;
}
str_extract(buf, &(conn->reply_length), &(conn->reply));
@@
-658,6
+659,7
@@
static void process_get(struct connection *conn)
else {
default_reply(conn, 404, "Not Found",
"The page you requested could not be found.");
+ free(decoded_url);
return;
}
free(decoded_url);