main.c free argv after its use (Win GUI only)
This commit is contained in:
parent
cde840abc3
commit
71c4b6244c
|
|
@ -1372,6 +1372,14 @@ main(int argc, char **argv)
|
||||||
if (!SETJMP(jbuf, 1)) {
|
if (!SETJMP(jbuf, 1)) {
|
||||||
/* enter the command processing loop */
|
/* enter the command processing loop */
|
||||||
cp_interactive = TRUE;
|
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();
|
app_rl_readlines();
|
||||||
} else {
|
} else {
|
||||||
ft_sigintr_cleanup();
|
ft_sigintr_cleanup();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue