diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-10-10 14:47:13 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 10:57:51 -0400 |
commit | 7ad0a42e88c09b4046205316bd6352dfb31afd79 (patch) | |
tree | b64102b23c6e0bcd53196a21e2c11ba919c6b61f /gdb/solib.c | |
parent | 1c0dfccba7bac021456198597fdce080d4a8315b (diff) | |
download | gdb-7ad0a42e88c09b4046205316bd6352dfb31afd79.zip gdb-7ad0a42e88c09b4046205316bd6352dfb31afd79.tar.gz gdb-7ad0a42e88c09b4046205316bd6352dfb31afd79.tar.bz2 |
gdb: make so_list::lm_info a unique_ptr
Make it a unique_ptr, so it gets automatically deleted when the so_list
is deleted.
Change-Id: Ib62d60ae2a80656239860b80e4359121c93da13d
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c index 4799fab..5ed223b 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -675,7 +675,6 @@ void free_so (so_list &so) { clear_so (so); - delete so.lm_info; delete &so; } |