commit | 13a8f0b2946965b66d31f02110a4336716625b4c | [log] [tgz] |
---|---|---|
author | Matt Mower <mowerm@gmail.com> | Sat Sep 26 15:40:03 2015 -0500 |
committer | Matt Mower <mowerm@gmail.com> | Wed Nov 11 19:42:27 2015 -0600 |
tree | 8edee1d423c9d83795a9a7994032a4ca0edc0787 | |
parent | e0f1f3b4d1860143070d15501e19546680ed664a [diff] [blame] |
Free some memory allocations Change-Id: Ifb6c186e43e1eb068e8075def16924ced04bb23d
diff --git a/twinstall.cpp b/twinstall.cpp index c1ff705..7eea07d 100644 --- a/twinstall.cpp +++ b/twinstall.cpp
@@ -182,9 +182,12 @@ close(pipe_fd[0]); execve(Temp_Binary.c_str(), (char* const*)args, environ); printf("E:Can't execute '%s': %s\n", Temp_Binary.c_str(), strerror(errno)); + free(temp); _exit(-1); } close(pipe_fd[1]); + free(temp); + temp = NULL; *wipe_cache = 0;