diff src/if_xcmdsrv.c @ 12399:de1ae9d8ef57 v8.0.1079

patch 8.0.1079: memory leak when remote_foreground() fails commit https://github.com/vim/vim/commit/09d6c3818d7451a659f4d12a4e974237fe823f7d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 9 16:25:54 2017 +0200 patch 8.0.1079: memory leak when remote_foreground() fails Problem: Memory leak when remote_foreground() fails. Solution: Free the error message.
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Sep 2017 16:30:04 +0200
parents 71311d899b42
children 8412df1479a3
line wrap: on
line diff
--- 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;
 	    }
 	}