From: Masatake YAMATO Date: Wed, 16 Apr 2014 06:33:01 +0000 (+0900) Subject: unwind: delete mmap cache in free_libunwind_ui X-Git-Tag: v4.9~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7721499fc7ea15cbf2f7d4f89c9502e325b451fc;p=platform%2Fupstream%2Fstrace.git unwind: delete mmap cache in free_libunwind_ui free_libunwind_ui is expected to release all unwind related resources attached to tcp. * strace.c (droptcb): Move delete_mmap_cache call ... * unwind.c (free_libunwind_ui): ... to here. Signed-off-by: Masatake YAMATO --- diff --git a/strace.c b/strace.c index a8b04b07..0f7f16c8 100644 --- a/strace.c +++ b/strace.c @@ -747,7 +747,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 7c179bf2..fc97ea2d 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; }