Avoid manual memory management in go-lang.c
authorTom Tromey <tom@tromey.com>
Fri, 17 Feb 2023 00:36:29 +0000 (17:36 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 18 Feb 2023 00:05:04 +0000 (19:05 -0500)
commitbe643e074f3081b537a11c87c1ccf1d400f2945e
tree898428fd0a1f6b943246c5737707925d6d3367c7
parent22e1578cc831ab97a34d8bddcba73544a4fce6b8
Avoid manual memory management in go-lang.c

I noticed a couple of spots in go-lang.c that could be improved by
using unique_ptr.

Reviewed-By: Andrew Burgess <aburgess@redhat.com>
gdb/dwarf2/read.c
gdb/go-exp.y
gdb/go-lang.c
gdb/go-lang.h