Merge branch 'rs/column-leakfix'
Leakfix. * rs/column-leakfix: column: release strbuf and string_list after use
This commit is contained in:
@ -56,5 +56,7 @@ int cmd_column(int argc, const char **argv, const char *prefix)
|
|||||||
string_list_append(&list, sb.buf);
|
string_list_append(&list, sb.buf);
|
||||||
|
|
||||||
print_columns(&list, colopts, &copts);
|
print_columns(&list, colopts, &copts);
|
||||||
|
strbuf_release(&sb);
|
||||||
|
string_list_clear(&list, 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
test_description='git column'
|
test_description='git column'
|
||||||
|
TEST_PASSES_SANITIZE_LEAK=true
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
test_expect_success 'setup' '
|
test_expect_success 'setup' '
|
||||||
|
Reference in New Issue
Block a user