RPM Community Forums

Mailing List Message of <popt-devel>

Re: Question about the xmalloc() et al functions

From: Wayne Davison <wayned@samba.org>
Date: Mon 10 Mar 2008 - 00:59:14 CET
Message-ID: <20080309235914.GE9986@herod.dreamhost.com>
On Sun, Mar 09, 2008 at 07:26:31PM -0400, Jeff Johnson wrote:
> There are some subtleties however with xstrdup. [... mtrace related
> issues ...]

Right, that's why I preserved the HAVE_MCHECK_H version using its own
malloc() call (it's unchanged from your version) and just made the non-
HAVE_MCHECK_H version add failure checking.  All the other functions are
the same for both (with exit-on-failure handling).

..wayne..
Received on Mon Mar 10 00:59:21 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.