Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
Hildegunst von Mythenmetz of programming (condret@shitposter.world)'s status on Saturday, 03-May-2025 14:34:59 JST Hildegunst von Mythenmetz of programming
@pwm @nyanide yes, it is
"The free() function frees the memory space pointed to by ptr, which must have been returned by a previous call to malloc(), calloc() or realloc(). Otherwise, or if free(ptr) has already been called before, undefined behavior occurs. If ptr is NULL, no operation is performed."
https://linux.die.net/man/3/free