diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-21 09:40:56 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-21 09:40:56 +0000 |
commit | e9064c32ee87be697a8738aae242b0fd03eabf66 (patch) | |
tree | e38eba1558c226a65a7eac096d26707787223caa /usr.sbin/ntpd | |
parent | db115279b73becad62fd44954882d9c44888ccd8 (diff) |
no multiple free(); "John L. Scarfone" <j0@cox.net>
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/parse.y b/usr.sbin/ntpd/parse.y index 43d36efeb04..7efb7fc80a7 100644 --- a/usr.sbin/ntpd/parse.y +++ b/usr.sbin/ntpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.13 2004/07/20 16:47:55 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.14 2004/07/21 09:40:55 henning Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -172,9 +172,9 @@ conf_main : LISTEN ON address { if (p->addr_head.name == NULL) fatal(NULL); TAILQ_INSERT_TAIL(&conf->ntp_peers, p, entry); - free($2->name); - free($2); } + free($2->name); + free($2); } | SERVER address { struct ntp_peer *p; |