commit | 09d6c3818d7451a659f4d12a4e974237fe823f7d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Sep 09 16:25:54 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Sep 09 16:25:54 2017 +0200 |
tree | d4ee7440b6536afb67018b5b2ed30e3a2dd036da | |
parent | b4ea1914b8ca7c368253bd96e6b3cb9e3392da1c [diff] [blame] |
patch 8.0.1079: memory leak when remote_foreground() fails Problem: Memory leak when remote_foreground() fails. Solution: Free the error message.
diff --git a/src/if_xcmdsrv.c b/src/if_xcmdsrv.c index 4c3c012..2d87e30 100644 --- a/src/if_xcmdsrv.c +++ b/src/if_xcmdsrv.c
@@ -420,6 +420,7 @@ { LookupName(dpy, loosename ? loosename : name, /*DELETE=*/TRUE, NULL); + vim_free(loosename); continue; } }