diff options
author | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2023-12-13 17:52:15 -0800 |
---|---|---|
committer | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2023-12-14 11:10:40 -0800 |
commit | 01b386b55ecadcfce98896b9214edcd1e6fe0e62 (patch) | |
tree | 6d641c013592379318706d0d60ba6cc0de621b57 /gprofng | |
parent | 03ce4e1bdb8f46742b7bcf648ad4ebd90dbee935 (diff) | |
download | gdb-01b386b55ecadcfce98896b9214edcd1e6fe0e62.zip gdb-01b386b55ecadcfce98896b9214edcd1e6fe0e62.tar.gz gdb-01b386b55ecadcfce98896b9214edcd1e6fe0e62.tar.bz2 |
gprofng: fix -Wuse-after-free warning
Removed incorrect unnecessary code.
gprofng/ChangeLog
2023-12-13 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
* src/collctrl.cc (set_synctrace): Fix -Wuse-after-free warning.
Diffstat (limited to 'gprofng')
-rw-r--r-- | gprofng/src/collctrl.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gprofng/src/collctrl.cc b/gprofng/src/collctrl.cc index 5d68b68..aeff5a0 100644 --- a/gprofng/src/collctrl.cc +++ b/gprofng/src/collctrl.cc @@ -1081,10 +1081,6 @@ Coll_Ctrl::set_synctrace (const char *string) if (*endchar != 0 || tval < 0) { free (val); - /* invalid setting */ - /* restore the comma, if it was zeroed out */ - if (comma_p != NULL) - *comma_p = ','; return dbe_sprintf (GTXT ("Unrecognized synchronization tracing threshold `%s'\n"), string); } free (val); |