aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-10 14:47:13 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-19 10:57:51 -0400
commit7ad0a42e88c09b4046205316bd6352dfb31afd79 (patch)
treeb64102b23c6e0bcd53196a21e2c11ba919c6b61f /gdb/solib.c
parent1c0dfccba7bac021456198597fdce080d4a8315b (diff)
downloadgdb-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.c1
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;
}