diff options
| author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2023-02-07 00:07:39 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-06 15:34:37 -0800 |
| commit | 81e5c39cf63b414468adcc6601184212e68e1fc1 (patch) | |
| tree | d970a9442f967ea662a1ca8f8cd339ae543446f7 /builtin/commit-graph.c | |
| parent | commit-graph: use free_commit_graph() instead of UNLEAK() (diff) | |
| download | git-81e5c39cf63b414468adcc6601184212e68e1fc1.tar.gz git-81e5c39cf63b414468adcc6601184212e68e1fc1.zip | |
clone: use free() instead of UNLEAK()
Change an UNLEAK() added in 0c4542738e6 (clone: free or UNLEAK further
pointers when finished, 2021-03-14) to use a "to_free" pattern
instead. In this case the "repo" can be either this absolute_pathdup()
value, or in the "else if" branch seen in the context the the
"argv[0]" argument to "main()".
We can only free() the value in the former case, hence the "to_free"
pattern.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions
