diff options
Diffstat (limited to 'src/menu.c')
-rw-r--r-- | src/menu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/menu.c b/src/menu.c index 3728aa779..310cf5928 100644 --- a/src/menu.c +++ b/src/menu.c @@ -727,8 +727,7 @@ add_menu_path( menup = &menu->children; parent = menu; name = next_name; - vim_free(dname); - dname = NULL; + VIM_CLEAR(dname); if (pri_tab[pri_idx + 1] != -1) ++pri_idx; } |