Skip to content

Commit

Permalink
[VXP]: fix memory leak when hooking dex2oat
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Jun 16, 2018
1 parent fb83e5c commit 09e6e03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VirtualApp/lib/src/main/jni/Foundation/IOUniformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,8 @@ HOOK_DEF(int, execve, const char *pathname, char *argv[], char *const envp[]) {
char **new_argv = build_new_argv(argv);
int ret = syscall(__NR_execve, redirect_path, new_argv, new_envp);
FREE(redirect_path, pathname);
free(new_envp);
free(new_argv);
return ret;
}
int ret = syscall(__NR_execve, redirect_path, argv, envp);
Expand Down

0 comments on commit 09e6e03

Please sign in to comment.