make free save against NULL pointers,
make free save against NULL pointers, also the parameter ptr is set to NULL
Alphabetic index