Commit 2ae009ac authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: Don't forget to free temporary self VMAs

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 9e5b145a
...@@ -1257,6 +1257,7 @@ static void restorer_test(pid_t pid) ...@@ -1257,6 +1257,7 @@ static void restorer_test(pid_t pid)
} }
close(fd_vmas); close(fd_vmas);
free_mappings(&self_vma_list);
restorer_fcall = restorer; restorer_fcall = restorer;
code_len = restorer_fcall(RESTORER_CMD__GET_SELF_LEN) - (long)restorer; code_len = restorer_fcall(RESTORER_CMD__GET_SELF_LEN) - (long)restorer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment