Skip site navigation (1)Skip section navigation (2)
Date:      05 Jun 2001 02:02:59 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Paul Richards <paul@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/mailwrapper mailwrapper.c
Message-ID:  <xzpg0dfbxos.fsf@flood.ping.uio.no>
In-Reply-To: <200106040422.f544Mwd31406@freefall.freebsd.org>
References:  <200106040422.f544Mwd31406@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Richards <paul@FreeBSD.org> writes:
>   Log:
>   You can't free a string and then use it as the error message to
>   errx. Instead use warn to print the string, then cleanup and exit
>   normally.

If you're going to exit() anyway, you don't need to bother freeing the
string.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpg0dfbxos.fsf>