emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] --enable-checking=xmallocoverrun


From: Dmitry Antipov
Subject: [PATCH] --enable-checking=xmallocoverrun
Date: Thu, 13 Oct 2011 16:59:41 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0

When xmallocoverrun check is enabled, everything allocated with xmalloc() 
should be
passed to xfree(), not free(). Otherwise glibc will detect an inconsistency in 
the
internal malloc data structures and abort the program.

Due to this, Emacs configured with --enable-checking=xmallocoverrun currently 
crashes,
both with default (gtk) and lucid toolkits. Here is an obvious fix for all of 
these issues.

Dmitry

Attachment: xfree.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]