diff --git a/rmw_zenoh_cpp/src/rmw_zenoh.cpp b/rmw_zenoh_cpp/src/rmw_zenoh.cpp index 913da9ac..5b2f19b3 100644 --- a/rmw_zenoh_cpp/src/rmw_zenoh.cpp +++ b/rmw_zenoh_cpp/src/rmw_zenoh.cpp @@ -2661,7 +2661,7 @@ rmw_destroy_service(rmw_node_t * node, rmw_service_t * service) // CLEANUP ================================================================ z_drop(z_move(service_data->keyexpr)); - z_drop(z_move(service_data->qable)); + z_undeclare_queryable(z_move(service_data->qable)); z_drop(z_move(service_data->token)); RMW_TRY_DESTRUCTOR(