Skip to content

Commit f90c01c

Browse files
authored
Set transition_map->states/transition size to 0 on fini (#729)
Signed-off-by: Stephen Brawner <[email protected]>
1 parent c749682 commit f90c01c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rcl_lifecycle/src/transition_map.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ rcl_lifecycle_transition_map_fini(
7070
// free the primary states
7171
allocator->deallocate(transition_map->states, allocator->state);
7272
transition_map->states = NULL;
73+
transition_map->states_size = 0;
7374
// free the tansitions
7475
allocator->deallocate(transition_map->transitions, allocator->state);
7576
transition_map->transitions = NULL;
77+
transition_map->transitions_size = 0;
7678

7779
return fcn_ret;
7880
}

0 commit comments

Comments
 (0)