/* Convenience functions implemented in Python.
- Copyright (C) 2008-2019 Free Software Foundation, Inc.
+ Copyright (C) 2008-2022 Free Software Foundation, Inc.
This file is part of GDB.
if (! docstring)
docstring.reset (xstrdup (_("This function is not documented.")));
- add_internal_function (name, std::move (docstring), fnpy_call,
- self_ref.release ());
+ add_internal_function (make_unique_xstrdup (name), std::move (docstring),
+ fnpy_call, self_ref.release ());
return 0;
}