summaryrefslogtreecommitdiff
path: root/src/mbyte.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index 5ed321ed2..575fd52d4 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -4666,8 +4666,7 @@ iconv_string(
else if (ICONV_ERRNO != ICONV_E2BIG)
{
/* conversion failed */
- vim_free(result);
- result = NULL;
+ VIM_CLEAR(result);
break;
}
/* Not enough room or skipping illegal sequence. */