Browse Source

no multiple free(); "John L. Scarfone" <j0@cox.net>

OPENBSD_3_6
henning 20 years ago
parent
commit
ccff097c6b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/usr.sbin/ntpd/parse.y

+ 3
- 3
src/usr.sbin/ntpd/parse.y View File

@ -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> * 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) if (p->addr_head.name == NULL)
fatal(NULL); fatal(NULL);
TAILQ_INSERT_TAIL(&conf->ntp_peers, p, entry); TAILQ_INSERT_TAIL(&conf->ntp_peers, p, entry);
free($2->name);
free($2);
} }
free($2->name);
free($2);
} }
| SERVER address { | SERVER address {
struct ntp_peer *p; struct ntp_peer *p;


Loading…
Cancel
Save