diff options
author | Patrick Latifi <pat@cvs.openbsd.org> | 2006-05-31 02:18:24 +0000 |
---|---|---|
committer | Patrick Latifi <pat@cvs.openbsd.org> | 2006-05-31 02:18:24 +0000 |
commit | fdccb5f0f7db3f21dbff93bd3665bbd1930fca25 (patch) | |
tree | 022122ed28757d04331498b54e46fa8fbc0ad5e0 /usr.sbin | |
parent | ee62d3eade88eba53c2911279f0adb184a55a1a8 (diff) |
Plug memory leak; ok claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospfd/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/parse.y b/usr.sbin/ospfd/parse.y index be15aa0244f..8297690d3de 100644 --- a/usr.sbin/ospfd/parse.y +++ b/usr.sbin/ospfd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.31 2006/05/30 22:06:14 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.32 2006/05/31 02:18:23 pat Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -208,12 +208,12 @@ conf_main : ROUTERID STRING { free(r); YYERROR; } - free($2); SIMPLEQ_INSERT_TAIL(&conf->redist_list, r, entry); } conf->redistribute |= REDISTRIBUTE_ON; + free($2); } | REDISTRIBUTE RTLABEL STRING { |