main.c free argv after its use (Win GUI only)

This commit is contained in:
h_vogt 2016-07-24 18:04:26 +02:00 committed by Holger Vogt
parent d89eab99d5
commit 8762f6551d
1 changed files with 8 additions and 0 deletions

View File

@ -1386,6 +1386,14 @@ main(int argc, char **argv)
if (!SETJMP(jbuf, 1)) {
/* enter the command processing loop */
cp_interactive = TRUE;
#ifdef HAS_WINGUI
int i;
if (argv) {
for (i = 0; i < argc; i++)
tfree(argv[i]);
tfree(argv);
}
#endif
app_rl_readlines();
} else {
ft_sigintr_cleanup();