all: remove the vla usage

This commit is contained in:
Shuanglei Tao
2021-03-16 21:28:54 +08:00
parent 917cb54770
commit c5f414b25a
5 changed files with 16 additions and 17 deletions

View File

@@ -117,6 +117,7 @@ void process_free(pty_process *process) {
uv_thread_join(&process->tid);
#endif
if (process->io != NULL) pty_io_free(process->io);
if (process->argv != NULL) free(process->argv);
free(process);
}