diff options
author | Patrick Latifi <pat@cvs.openbsd.org> | 2006-03-31 17:38:19 +0000 |
---|---|---|
committer | Patrick Latifi <pat@cvs.openbsd.org> | 2006-03-31 17:38:19 +0000 |
commit | 025172ee1e10376391e43cc728bbcfc0b0b384d8 (patch) | |
tree | 147a3ff7810cc6e614b2c18da440c0399eef4c0b /usr.sbin/sasyncd | |
parent | 27623984cb21c7e7ec6e4c95d7ae2af56c9cff0a (diff) |
Plug memory leak on error path; ok ho@ moritz@
Diffstat (limited to 'usr.sbin/sasyncd')
-rw-r--r-- | usr.sbin/sasyncd/conf.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sasyncd/conf.y b/usr.sbin/sasyncd/conf.y index 2be1366620e..1156ff6b1b0 100644 --- a/usr.sbin/sasyncd/conf.y +++ b/usr.sbin/sasyncd/conf.y @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.y,v 1.7 2005/07/09 07:53:26 jmc Exp $ */ +/* $OpenBSD: conf.y,v 1.8 2006/03/31 17:38:18 pat Exp $ */ /* * Copyright (c) 2005 Håkan Olsson. All rights reserved. @@ -140,6 +140,7 @@ setting : CARP INTERFACE STRING interval if (!peer) { log_err("config: calloc(1, %lu) " "failed", sizeof *peer); + free($2); YYERROR; } peer->name = $2; |