summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2012-09-26 09:49:44 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2012-09-26 09:49:44 +0000
commit50b820788bd6a6d9636c7202dfde82543d0cefb5 (patch)
tree3372cb16ed1a9bd3c8226d1b5ba071828845e3b6 /usr.sbin
parentf0df9f34cbacb54540ed507a4ea76d2376281f04 (diff)
fix double free() issue in error paths
ok eric@ gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/parse.y5
1 files changed, 1 insertions, 4 deletions
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 <gilles@openbsd.org>
@@ -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;
}