1
0
forked from aniani/vim

patch 8.0.1079: memory leak when remote_foreground() fails

Problem:    Memory leak when remote_foreground() fails.
Solution:   Free the error message.
This commit is contained in:
Bram Moolenaar
2017-09-09 16:25:54 +02:00
parent b4ea1914b8
commit 09d6c3818d
3 changed files with 8 additions and 0 deletions

View File

@@ -420,6 +420,7 @@ serverSendToVim(
{
LookupName(dpy, loosename ? loosename : name,
/*DELETE=*/TRUE, NULL);
vim_free(loosename);
continue;
}
}