Problems with an circular free_object()