Browse Source

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

pre-master-46
h_vogt 10 years ago
committed by Holger Vogt
parent
commit
8762f6551d
  1. 8
      src/main.c

8
src/main.c

@ -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();

Loading…
Cancel
Save