diff options
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -269,9 +269,8 @@ static void add_cmd_list(struct cmdnames *cmds, struct cmdnames *old) for (i = 0; i < old->cnt; i++) cmds->names[cmds->cnt++] = old->names[i]; - free(old->names); + FREE_AND_NULL(old->names); old->cnt = 0; - old->names = NULL; } /* An empirically derived magic number */ |