diff options
Diffstat (limited to 'src/clientserver.c')
-rw-r--r-- | src/clientserver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clientserver.c b/src/clientserver.c index bb2108d7d4..eaaba2572a 100644 --- a/src/clientserver.c +++ b/src/clientserver.c @@ -423,9 +423,7 @@ cmdsrv_main( if (argtype == ARGTYPE_EDIT_WAIT) { int numFiles = *argc - i - 1; - int j; char_u *done = alloc(numFiles); - char_u *p; # ifdef FEAT_GUI_MSWIN NOTIFYICONDATA ni; int count = 0; @@ -450,6 +448,8 @@ cmdsrv_main( vim_memset(done, 0, numFiles); while (memchr(done, 0, numFiles) != NULL) { + char_u *p; + int j; # ifdef MSWIN p = serverGetReply(srv, NULL, TRUE, TRUE, 0); if (p == NULL) @@ -459,6 +459,7 @@ cmdsrv_main( break; # endif j = atoi((char *)p); + vim_free(p); if (j >= 0 && j < numFiles) { # ifdef FEAT_GUI_MSWIN |