diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-01-03 16:20:32 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-01-03 16:20:32 +0000 |
commit | 9395d112a7766374f189c9fdc5fcb2b1db0b5f30 (patch) | |
tree | 9c54474e71ea91c87d7e67e5a51b954bbc5aa733 | |
parent | cc294aa7a5db6214ac8709264b3cd5081841bad6 (diff) |
Tweak previous - add a missing free in the error path.
-rw-r--r-- | usr.sbin/httpd/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/httpd/parse.y b/usr.sbin/httpd/parse.y index 145d99c793c..860c2ae7c3a 100644 --- a/usr.sbin/httpd/parse.y +++ b/usr.sbin/httpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.47 2015/01/03 15:49:18 reyk Exp $ */ +/* $OpenBSD: parse.y,v 1.48 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); } |