diff options
author | dd <dd@FreeBSD.org> | 2001-08-09 06:20:18 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-08-09 06:20:18 +0000 |
commit | a00d57dd667d4def94a62c9d5511fc55f80938c3 (patch) | |
tree | 07d0a72b398e495fade5e865d2993e9d630254b9 /usr.sbin/mailwrapper | |
parent | 8f17f2c988b798eea5d36ee54b0bd9dbc1bb174d (diff) | |
download | FreeBSD-src-a00d57dd667d4def94a62c9d5511fc55f80938c3.zip FreeBSD-src-a00d57dd667d4def94a62c9d5511fc55f80938c3.tar.gz |
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
Diffstat (limited to 'usr.sbin/mailwrapper')
-rw-r--r-- | usr.sbin/mailwrapper/mailwrapper.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.sbin/mailwrapper/mailwrapper.c b/usr.sbin/mailwrapper/mailwrapper.c index 7d6ad14..4eef31c 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*/ } |