Skip to content

Commit 7fa5521

Browse files
committed
SQUASH??? leakfix
1 parent 13b7181 commit 7fa5521

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static int list_cmds(const char *spec)
119119
}
120120
for (size_t i = 0; i < list.nr; i++)
121121
puts(list.items[i].string);
122-
string_list_clear(&list, 0);
122+
string_list_clear(&list, 1);
123123
return 0;
124124
}
125125

help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ void list_cmds_by_config(struct string_list *list)
423423
return;
424424

425425
string_list_sort(list);
426-
string_list_remove_duplicates(list, 0);
426+
string_list_remove_duplicates(list, 1);
427427

428428
while (*cmd_list) {
429429
struct strbuf sb = STRBUF_INIT;

0 commit comments

Comments
 (0)