diff options
Diffstat (limited to 'src/os_win32.c')
-rw-r--r-- | src/os_win32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index ff1177722..7930957ad 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -4866,7 +4866,10 @@ mch_call_shell_terminal( argvar[1].v_type = VAR_UNKNOWN; buf = term_start(argvar, NULL, &opt, TERM_START_SYSTEM); if (buf == NULL) + { + vim_free(newcmd); return 255; + } job = term_getjob(buf->b_term); ++job->jv_refcount; |