The free function was called too early