[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libunwind] [patch] Close map on error
From: |
Ed Connell |
Subject: |
[libunwind] [patch] Close map on error |
Date: |
Fri, 18 Jun 2004 14:17:48 -0400 |
This will keep libunwind from leaking all available maps over time.
Cheers
Ed
diff -u -r libunwind-0.97/src/ptrace/_UPT_get_dyn_info_list_addr.c
libunwind-0.97.edconn/src/ptrace/_UPT_get_dyn_info_list_addr.c
--- libunwind-0.97/src/ptrace/_UPT_get_dyn_info_list_addr.c 2004-06-18
11:15:31.000000000 -0400
+++ libunwind-0.97.edconn/src/ptrace/_UPT_get_dyn_info_list_addr.c
2004-06-18 12:26:57.000000000 -0400
@@ -54,8 +54,10 @@
ui->di_cache.start_ip = ui->di_cache.end_ip = 0;
}
- if (elf_map_image (&ui->ei, path) < 0)
+ if (elf_map_image (&ui->ei, path) < 0) {
+ maps_close (&mi);
return -UNW_ENOINFO;
+ }
Debug (16, "checking object %s\n", path);
- [libunwind] [patch] Close map on error,
Ed Connell <=