Skip to content

Commit

Permalink
Reset parameter event before calling fini
Browse files Browse the repository at this point in the history
Signed-off-by: Błażej Sowa <[email protected]>
  • Loading branch information
bjsowa committed Dec 7, 2024
1 parent 022d569 commit 06f5f2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rclc_parameter/src/rclc_parameter/parameter_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ rclc_parameter_server_fini_memory(

if (parameter_server->notify_changed_over_dds) {
// Free event list
rclc_parameter_reset_parameter_event(&parameter_server->event_list);
rcl_interfaces__msg__ParameterEvent__fini(&parameter_server->event_list);
}
}
Expand Down

0 comments on commit 06f5f2c

Please sign in to comment.