summaryrefslogtreecommitdiffstats
path: root/twinstall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'twinstall.cpp')
-rw-r--r--twinstall.cpp3
1 files changed, 3 insertions, 0 deletions
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;