Дана 24/09/22 07:20PM, bilal@iscarioth.org написа:
> malloc(13);/* <--- what will happen, a leak, it
> will be freed ? */
That will cause a memory leak. Every successful allocation needs to
have a corresponding call to free(3).
Check malloc(3) for more details. In particular,
/MALLOC OPTIONS
section, 'D' flag for the 'MALLOC_OPTIONS' variable.
No comments:
Post a Comment