lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

Fix #371 #372

Closed hsenani-ngc closed 1 year ago

hsenani-ngc commented 1 year ago

This minor commit fixes issue #371 by checking if a valid connection is made to the tcpq provider. If not the provider is freed and set to null. This ensures lcm_create frees the lcm structure and returns a NULL.