Skip to content

Commit 09e6e03

Browse files
author
tiann
committed
[VXP]: fix memory leak when hooking dex2oat
1 parent fb83e5c commit 09e6e03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

VirtualApp/lib/src/main/jni/Foundation/IOUniformer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,8 @@ HOOK_DEF(int, execve, const char *pathname, char *argv[], char *const envp[]) {
613613
char **new_argv = build_new_argv(argv);
614614
int ret = syscall(__NR_execve, redirect_path, new_argv, new_envp);
615615
FREE(redirect_path, pathname);
616+
free(new_envp);
617+
free(new_argv);
616618
return ret;
617619
}
618620
int ret = syscall(__NR_execve, redirect_path, argv, envp);

0 commit comments

Comments
 (0)