rclc
rclc copied to clipboard
Fix memory allocation in rclc_parameter
- Fixed
rclc_parameter_descriptor_initialize_stringnull dereference after failed allocation. - Simplified
rclc_parameter_server_fini_memoryfunction. There is no need to call fini on all fields of the message as the top-level fini function will do this either way. - Rewritten init functions to return on first error. This fixes issue with
init_parameter_server_memorywhere it tries to dereference an object after it failed to allocate.
I haven't touched the low memory mode ~~but I'm fairly certain it can use the same fini memory function.~~