free valid_transitions for all states (#537)
free valid_transitions for all states (#537)

* free valid_transitions for all states

transition_map->states[i].valid_transitions wasn't being release which was
leaking about 800 bytes per instantiation.

See https://github.com/aliasrobotics/RVD/issues/333

Signed-off-by: Víctor Mayoral Vilches <684b52d0ae01c206f1959fcb285dd13757e93b98@gmail.com>

* Fixups.

Signed-off-by: Chris Lalancette <281cd07d7578d97c83271fbbf2faddb83ab3791c@openrobotics.org>

ros2/rcl,ros2/rcl