summaryrefslogtreecommitdiffstats
path: root/libcorkscrew/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcorkscrew/ptrace.c')
-rw-r--r--libcorkscrew/ptrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcorkscrew/ptrace.c b/libcorkscrew/ptrace.c
index cbea8ca..776ef69 100644
--- a/libcorkscrew/ptrace.c
+++ b/libcorkscrew/ptrace.c
@@ -21,6 +21,7 @@
#include <corkscrew/ptrace.h>
#include <errno.h>
+#include <stdlib.h>
#include <sys/ptrace.h>
#include <cutils/log.h>
@@ -128,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,