diff options
author | 2003-12-25 18:04:10 +0000 | |
---|---|---|
committer | 2003-12-25 18:04:10 +0000 | |
commit | e70acea6642bb081a36bd2b3f2b74f01b1b6de3b (patch) | |
tree | 20bd75157c1572036dfb693090c1c58cd7bbbc79 | |
parent | Automatic merge (diff) | |
download | wireguard-openbsd-e70acea6642bb081a36bd2b3f2b74f01b1b6de3b.tar.xz wireguard-openbsd-e70acea6642bb081a36bd2b3f2b74f01b1b6de3b.zip |
don't leak in yyerror()
-rw-r--r-- | usr.sbin/bgpd/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 76b4cb9fbe7..319a71239ee 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.15 2003/12/25 17:58:50 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.16 2003/12/25 18:04:10 henning Exp $ */ /* * Copyright (c) 2002, 2003 Henning Brauer <henning@openbsd.org> @@ -290,6 +290,7 @@ yyerror(const char *fmt, ...) fatal("yyerror asprintf", 0); vlog(LOG_CRIT, nfmt, ap); va_end(ap); + free(nfmt); return (0); } |