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.
2 parents 80bdeca + dc1095a commit b33e018Copy full SHA for b33e018
src/merge.c
@@ -2277,8 +2277,11 @@ static int create_virtual_base(
2277
result->type = GIT_ANNOTATED_COMMIT_VIRTUAL;
2278
result->index = index;
2279
2280
- insert_head_ids(&result->parents, one);
2281
- insert_head_ids(&result->parents, two);
+ if (insert_head_ids(&result->parents, one) < 0 ||
+ insert_head_ids(&result->parents, two) < 0) {
2282
+ git_annotated_commit_free(result);
2283
+ return -1;
2284
+ }
2285
2286
*out = result;
2287
return 0;
0 commit comments