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 <gliangtao@gmail.com>
This commit is contained in:
Liangtao Gao 2013-03-20 19:48:19 +08:00 committed by Elliott Hughes
parent 1a2bdd6fbe
commit 0632ad4577
1 changed files with 1 additions and 0 deletions

View File

@ -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,