From 50b820788bd6a6d9636c7202dfde82543d0cefb5 Mon Sep 17 00:00:00 2001 From: Alexander Hall Date: Wed, 26 Sep 2012 09:49:44 +0000 Subject: fix double free() issue in error paths ok eric@ gilles@ --- usr.sbin/smtpd/parse.y | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'usr.sbin/smtpd') diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 440608d9e66..daf9895fee4 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.100 2012/09/17 20:19:18 eric Exp $ */ +/* $OpenBSD: parse.y,v 1.101 2012/09/26 09:49:43 halex Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -783,7 +783,6 @@ action : DELIVER TO MAILDIR user { if (rule->r_value.relayhost.flags & F_AUTH) { if ($5 == NULL) { yyerror("error: auth without authmap"); - free($3); free($4); free($5); free($6); @@ -799,9 +798,7 @@ action : DELIVER TO MAILDIR user { if (ssl_load_certfile($4, F_CCERT) < 0) { yyerror("cannot load certificate: %s", $4); - free($3); free($4); - free($5); free($6); YYERROR; } -- cgit v1.2.3