diff -r b9e92ff0728b PC/bdist_wininst/install.c --- a/PC/bdist_wininst/install.c Fri Mar 18 14:37:53 2016 +0200 +++ b/PC/bdist_wininst/install.c Sat Mar 19 09:44:27 2016 +0545 @@ -2539,6 +2539,7 @@ lines = (char **)malloc(sizeof(char *) * lines_buffer_size); if (!lines) + fclose(logfile); return SystemError(0, "Out of memory"); /* Read the whole logfile, realloacting the buffer */