tools: Fix memory leaks
authorSteve Grubb <sgrubb@redhat.com>
Fri, 14 May 2021 14:01:17 +0000 (10:01 -0400)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commit69094c02b553d15fba65b30b60361740c7f58c87
tree83c881b4ff78a79eea686ed113ebd066f1e50437
parent23d6c3fead74363a89b53515780f2132051aa21f
tools: Fix memory leaks

req is allocated memory that must be freed. It appears all other error
paths got fail which handles this.

g_new0 allocates memory to data which must be freed.

g_malloc0 allocates memory to comp which must be freed.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/mesh-cfgclient.c
tools/mesh-gatt/gatt.c
tools/mesh-gatt/node.c