Use unique_ptr for trace_dirname
authorTom Tromey <tom@tromey.com>
Sun, 9 Jul 2023 15:05:21 +0000 (09:05 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 10 Jul 2023 19:02:11 +0000 (13:02 -0600)
commitd4ea64fb5dd7bb79026c3bfacd06495d5f8e6702
treef3d4e5f786d23e7a2ebb6bde4c5f9fd734e82f12
parentc7b3e7462aba24ce65fd38e367bca976cfddaee2
Use unique_ptr for trace_dirname

This changes trace_dirname to use unique_ptr, removing some manual
memory management.

Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/tracectf.c