summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/diff.c b/src/diff.c
index 6c13d2ac4..a46f0bf81 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -726,10 +726,7 @@ diff_redraw(
clear_diffin(diffin_T *din)
{
if (din->din_fname == NULL)
- {
- vim_free(din->din_mmfile.ptr);
- din->din_mmfile.ptr = NULL;
- }
+ VIM_CLEAR(din->din_mmfile.ptr);
else
mch_remove(din->din_fname);
}