Free the correct type in OBJ_add_object()