We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a8fad3 commit 5c1ebc2Copy full SHA for 5c1ebc2
builtin/backfill.c
@@ -92,8 +92,11 @@ static int do_backfill(struct backfill_context *ctx)
92
93
if (ctx->sparse) {
94
CALLOC_ARRAY(info.pl, 1);
95
- if (get_sparse_checkout_patterns(info.pl))
+ if (get_sparse_checkout_patterns(info.pl)) {
96
+ clear_pattern_list(info.pl);
97
+ free(info.pl);
98
return error(_("problem loading sparse-checkout"));
99
+ }
100
}
101
102
repo_init_revisions(ctx->repo, &revs, "");
@@ -113,6 +116,11 @@ static int do_backfill(struct backfill_context *ctx)
113
116
download_batch(ctx);
114
117
115
118
clear_backfill_context(ctx);
119
+ release_revisions(&revs);
120
+ if (info.pl) {
121
122
123
124
return ret;
125
126
0 commit comments