artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fb1874
)
Tweak previous - add a missing free in the error path.
author
reyk
<reyk@openbsd.org>
Sat, 3 Jan 2015 16:20:31 +0000
(16:20 +0000)
committer
reyk
<reyk@openbsd.org>
Sat, 3 Jan 2015 16:20:31 +0000
(16:20 +0000)
usr.sbin/httpd/parse.y
patch
|
blob
|
history
diff --git
a/usr.sbin/httpd/parse.y
b/usr.sbin/httpd/parse.y
index
145d99c
..
860c2ae
100644
(file)
--- a/
usr.sbin/httpd/parse.y
+++ b/
usr.sbin/httpd/parse.y
@@
-1,4
+1,4
@@
-/* $OpenBSD: parse.y,v 1.4
7 2015/01/03 15:49:18
reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.4
8 2015/01/03 16:20:31
reyk Exp $ */
/*
* Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org>
@@
-1744,6
+1744,7
@@
server_inherit(struct server *src, const char *name,
dst->srv_conf.id = ++last_server_id;
if (last_server_id == INT_MAX) {
yyerror("too many servers defined");
+ serverconfig_free(&dst->srv_conf);
free(dst);
return (NULL);
}