mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-25 03:06:11 +08:00
Revert "gdb/python: Avoid use after free in py-tui.c"
This reverts commit 982a38f60b0ece9385556cff45567e06710478cb. I missed that the title being assigned too was a std::string, and so there is no leak.
This commit is contained in:
@ -433,7 +433,7 @@ gdbpy_tui_set_title (PyObject *self, PyObject *newvalue, void *closure)
|
||||
if (value == nullptr)
|
||||
return -1;
|
||||
|
||||
win->window->title = value.release ();
|
||||
win->window->title = value.get ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user