diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-09 16:25:54 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-09 16:25:54 +0200 |
commit | 09d6c3818d7451a659f4d12a4e974237fe823f7d (patch) | |
tree | d4ee7440b6536afb67018b5b2ed30e3a2dd036da /src/if_xcmdsrv.c | |
parent | b4ea1914b8ca7c368253bd96e6b3cb9e3392da1c (diff) |
patch 8.0.1079: memory leak when remote_foreground() failsv8.0.1079
Problem: Memory leak when remote_foreground() fails.
Solution: Free the error message.
Diffstat (limited to 'src/if_xcmdsrv.c')
-rw-r--r-- | src/if_xcmdsrv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if_xcmdsrv.c b/src/if_xcmdsrv.c index 4c3c012202..2d87e30501 100644 --- a/src/if_xcmdsrv.c +++ b/src/if_xcmdsrv.c @@ -420,6 +420,7 @@ serverSendToVim( { LookupName(dpy, loosename ? loosename : name, /*DELETE=*/TRUE, NULL); + vim_free(loosename); continue; } } |