summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 971590aab..78a30182e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3951,8 +3951,7 @@ cmdsrv_main(
{
/* Output error from remote */
mch_errmsg((char *)res);
- vim_free(res);
- res = NULL;
+ VIM_CLEAR(res);
}
mch_errmsg(_(": Send expression failed.\n"));
}