From 13a8f0b2946965b66d31f02110a4336716625b4c Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Sat, 26 Sep 2015 15:40:03 -0500 Subject: Free some memory allocations Change-Id: Ifb6c186e43e1eb068e8075def16924ced04bb23d --- twinstall.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'twinstall.cpp') diff --git a/twinstall.cpp b/twinstall.cpp index c1ff70501..7eea07dd2 100644 --- a/twinstall.cpp +++ b/twinstall.cpp @@ -182,9 +182,12 @@ static int Run_Update_Binary(const char *path, ZipArchive *Zip, int* wipe_cache) 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; -- cgit v1.2.3