Use std::string in rust_get_disr_info
authorTom Tromey <tom@tromey.com>
Wed, 9 Nov 2016 03:22:29 +0000 (20:22 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 12 Nov 2016 17:34:46 +0000 (10:34 -0700)
commitd93f4d96bb0fb307db9e2dade38ddb3c6bc469ca
tree406f33f8619ea14abbfed0450ece76fd1e236cae
parent6cb2202baaf482a8c7d54e5ec93af2f057e7ce28
Use std::string in rust_get_disr_info

This changes rust_get_disr_info to use std::string in one more spot,
avoiding a memory leak.

2016-11-12  Tom Tromey  <tom@tromey.com>

* rust-lang.c (rust_get_disr_info): Use std::string in one more
spot.
gdb/ChangeLog
gdb/rust-lang.c