diff options
author | Gopal Tiwari <gtiwari@redhat.com> | 2022-05-31 13:11:16 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-05-31 13:08:57 -0700 |
commit | 56bda20ce9e3e5c4684b37cffd4527264c2b4c1e (patch) | |
tree | b4561fde7a7369966a17530836a42370a9f57e87 /tools | |
parent | 06d3c7429ad6bdf6eef1bcedee327e74a33c40bf (diff) | |
download | bluez-56bda20ce9e3e5c4684b37cffd4527264c2b4c1e.tar.gz |
meshctl: Fix possible use_after_free
Reported by coverity tool as follows :
bluez-5.64/tools/meshctl.c:1968: freed_arg: "g_free" frees "mesh_dir".
bluez-5.64/tools/meshctl.c:2018: double_free: Calling "g_free" frees
pointer "mesh_dir" which has already been freed.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/meshctl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/meshctl.c b/tools/meshctl.c index 18e20c40d..38ffd35f3 100644 --- a/tools/meshctl.c +++ b/tools/meshctl.c @@ -2015,7 +2015,6 @@ int main(int argc, char *argv[]) fail: bt_shell_cleanup(); - g_free(mesh_dir); return EXIT_FAILURE; } |