mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 00:30:27 +00:00
refs: handle NULL pointers passed to git_reference_iterator_free()
Signed-off-by: Brodie Rao <brodie@sf.io>
This commit is contained in:
parent
32b7e84ec0
commit
2ad45213a8
@ -724,6 +724,9 @@ int git_reference_next_name(const char **out, git_reference_iterator *iter)
|
||||
|
||||
void git_reference_iterator_free(git_reference_iterator *iter)
|
||||
{
|
||||
if (iter == NULL)
|
||||
return;
|
||||
|
||||
git_refdb_iterator_free(iter);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user