diff options
Diffstat (limited to 'src/nvim/spellfile.c')
-rw-r--r-- | src/nvim/spellfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c index 117939e7e9..5f5f74cf2e 100644 --- a/src/nvim/spellfile.c +++ b/src/nvim/spellfile.c @@ -1446,8 +1446,7 @@ static int read_compound(FILE *fd, slang_T *slang, int len) // Copy flag to "sl_comprules", unless we run into a wildcard. if (crp != NULL) { if (c == '?' || c == '+' || c == '*') { - xfree(slang->sl_comprules); - slang->sl_comprules = NULL; + XFREE_CLEAR(slang->sl_comprules); crp = NULL; } else *crp++ = c; |