Skip to content

Commit b381c98

Browse files
committed
Merge branch 'rs/pull-leakfix'
Leakfix. * rs/pull-leakfix: pull: plug minor memory leak after using is_descendant_of()
2 parents 6104867 + 0c9a4f6 commit b381c98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/pull.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ int cmd_pull(int argc, const char **argv, const char *prefix)
10311031
ran_ff = 1;
10321032
ret = run_merge();
10331033
}
1034+
free_commit_list(list);
10341035
}
10351036
if (!ran_ff)
10361037
ret = run_rebase(&curr_head, merge_heads.oid, &rebase_fork_point);

0 commit comments

Comments
 (0)