diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2012-04-15 03:12:31 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2012-04-15 03:12:31 +0000 |
commit | 2f5144ae1b5cfcc64066cf2025de155577e045df (patch) | |
tree | ed0e16c4fea7cbc0ef8642d8ea82b40aea622025 /usr.sbin/relayd/parse.y | |
parent | 835f7dcd20043dfc07053ae2a228e62135fc109f (diff) |
fix some leaks
ok krw@
Diffstat (limited to 'usr.sbin/relayd/parse.y')
-rw-r--r-- | usr.sbin/relayd/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y index a6427c58b3f..a45c43692e2 100644 --- a/usr.sbin/relayd/parse.y +++ b/usr.sbin/relayd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.161 2012/01/21 13:40:48 camield Exp $ */ +/* $OpenBSD: parse.y,v 1.162 2012/04/15 03:12:30 jsg Exp $ */ /* * Copyright (c) 2007-2011 Reyk Floeter <reyk@openbsd.org> @@ -2691,6 +2691,7 @@ table_inherit(struct table *tb) h->conf.id = ++last_host_id; if (last_host_id == INT_MAX) { yyerror("too many hosts defined"); + free(h); goto fail; } h->conf.tableid = tb->conf.id; |