mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user