`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 <[email protected]> --- 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 ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Strace-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strace-devel
