]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use std::string in reread_symbols
authorTom Tromey <tom@tromey.com>
Fri, 18 May 2018 20:30:25 +0000 (14:30 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 21 May 2018 15:38:36 +0000 (09:38 -0600)
commitc0c9f665d9d4cdcef59cc7951396d843a7ea6a48
tree72342cb10fe1ac53937b0e68bf7cb7ffea3ffc46
parent22ca247e9e29c11ccfc99b5d187c7dc925608b78
Use std::string in reread_symbols

This removes a cleanup from reread_symbols by using std::string.  This
fixes a memory leak, because this cleanup is ordinarily discarded, not
run.

Tested by the buildbot.

ChangeLog
2018-05-21  Tom Tromey  <tom@tromey.com>

* symfile.c (reread_symbols): Use std::string for original_name.
gdb/ChangeLog
gdb/symfile.c