linenoise icon indicating copy to clipboard operation
linenoise copied to clipboard

Don’t check for NULL before calling free()

Open Mango0x45 opened this issue 2 years ago • 0 comments

As per man 3 free:

The free() function deallocates the memory allocation pointed to by ptr. If ptr is a NULL pointer, no operation is performed.

Mango0x45 avatar Jan 03 '24 10:01 Mango0x45