On Mon, 2012-07-09 at 22:01 +0200, David Nečas wrote:
> On Mon, Jul 09, 2012 at 03:40:11PM -0400, Liam R E Quin wrote:
> > also check that the free() was OK
> 
> I wonder how you do that (apart from not getting any glibc MALLOC_CHECK_
> error message or similar).

There's no portable way to do it really, you're right. In the past I've
written wrappers for malloc() and free() and realloc() to make sure
everything passed to free actually came from malloc or one of her
friends, and on some systems there are also calls to check the heap.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to