If free function is NULL, point it to _dummy_free_fn()