On Sunday, 17 May 2020, 23:05:05 BST, Ranier Vilela <ranier_...@hotmail.com> 
wrote:

The big question is how to catch the double free that may exist.

Because this not to protect against double free.
if (ptr) {
  free(ptr);
}

One tactic I have just recently started adopting, entirely independent of this 
and in fact in a completely different language is:

ptr = ffree(ptr)

where ffree() always returns null.
  
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to