This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use std::string in reread_symbols
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 21 May 2018 12:43:16 -0400
- Subject: [binutils-gdb] Use std::string in reread_symbols
*** TEST RESULTS FOR COMMIT c0c9f665d9d4cdcef59cc7951396d843a7ea6a48 ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: c0c9f665d9d4cdcef59cc7951396d843a7ea6a48
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.