why casting pointer in mutt_mem_free

Kevin J. McCarthy kevin at 8t8.us
Wed Mar 28 17:16:57 UTC 2018


On Tue, Mar 27, 2018 at 12:30:13PM -0500, Derek Martin wrote:
> This does not exist in the Mutt source.  It probably shouldn't...
> The implementation is arguably bad and using it potentially invites
> bugs.

I agree with your points, but just wanted to point out that Mutt has
FREE()/safe_free() which this is based on.  To counter the problem you
pointed out, we have the check_sec.sh script which scans for incorrect
usage.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-dev/attachments/20180328/24463e70/attachment.asc>


More information about the Mutt-dev mailing list