From 0632ad45776aa7651bdcef1cd5728ad29025ab31 Mon Sep 17 00:00:00 2001 From: Liangtao Gao Date: Wed, 20 Mar 2013 19:48:19 +0800 Subject: [PATCH] debuggerd: Fix minor memory leak free_ptrace_context(context) doesn't free(context), which leaks the memory allocated to context. Change-Id: Ic199b257aefc9a05ec2d902958efa8a57a601fb1 Signed-off-by: Liangtao Gao --- libcorkscrew/ptrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libcorkscrew/ptrace.c b/libcorkscrew/ptrace.c index 6496d5e7d..776ef69f2 100644 --- a/libcorkscrew/ptrace.c +++ b/libcorkscrew/ptrace.c @@ -129,6 +129,7 @@ void free_ptrace_context(ptrace_context_t* context) { free_ptrace_map_info_data(mi); } free_map_info_list(context->map_info_list); + free(context); } void find_symbol_ptrace(const ptrace_context_t* context,