develooper Front page | perl.perl5.porters | Postings from September 2018

[perl #133550] [PATCH] Define also Perl's calloc() macro

September 28, 2018 11:43
[perl #133550] [PATCH] Define also Perl's calloc() macro
Message ID:
# New Ticket Created by   
# Please include the string:  [perl #133550]
# in the subject line of all future correspondence about this issue. 
# <URL: >

Functions malloc(), realloc() and free() are already redefined to
PerlMem_malloc(), PerlMem_realloc() and PerlMem_free(). But calloc() not.

This leads to the problem that memory by calloc() is allocated by system
C library, but freed by Perl's PerlMem_free() which just cause memory
corruptions. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About