[PATCH v4 03/37] unwind: delete mmap cache in free_libunwind_ui
Masatake YAMATO
yamato at redhat.com
Wed Apr 16 06:33:01 UTC 2014
`free_libunwind_ui' should have responsibility to release all unwind
related resources attached to tcp. Though mmap cache is released outside
of `free_libunwind_ui'. This patch unifies the places where unwind related
resources are released.
Signed-off-by: Masatake YAMATO <yamato at redhat.com>
---
strace.c | 1 -
unwind.c | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/strace.c b/strace.c
index c7040c9..8de7b28 100644
--- a/strace.c
+++ b/strace.c
@@ -737,7 +737,6 @@ droptcb(struct tcb *tcp)
#ifdef USE_LIBUNWIND
if (stack_trace_enabled) {
- delete_mmap_cache(tcp);
free_libunwind_ui(tcp);
}
#endif
diff --git a/unwind.c b/unwind.c
index 7c179bf..fc97ea2 100644
--- a/unwind.c
+++ b/unwind.c
@@ -69,6 +69,7 @@ init_libunwind_ui(struct tcb *tcp)
void
free_libunwind_ui(struct tcb *tcp)
{
+ delete_mmap_cache(tcp);
_UPT_destroy(tcp->libunwind_ui);
tcp->libunwind_ui = NULL;
}
--
1.9.0
More information about the Strace-devel
mailing list