From 8c37834db253de38fd4f91913a1b012c8541f831 Mon Sep 17 00:00:00 2001 From: Dima Dorfman Date: Thu, 9 Aug 2001 06:20:18 +0000 Subject: [PATCH] Don't free memory that was never allocated. This fixes a core dump in the case where both the config file and the default MTA don't exist. PR: 29521 Submitted by: marius@alchemy.franken.de --- usr.sbin/mailwrapper/mailwrapper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.sbin/mailwrapper/mailwrapper.c b/usr.sbin/mailwrapper/mailwrapper.c index 7d6ad1427388..4eef31c4b2a0 100644 --- a/usr.sbin/mailwrapper/mailwrapper.c +++ b/usr.sbin/mailwrapper/mailwrapper.c @@ -130,7 +130,6 @@ main(argc, argv, envp) closelog(); execve(_PATH_DEFAULTMTA, al.argv, envp); freearg(&al, 0); - free(line); err(1, "execing %s", _PATH_DEFAULTMTA); /*NOTREACHED*/ }