mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 06:47:53 +00:00
config: handle NULL pointers passed to git_config_iterator_free()
Signed-off-by: Brodie Rao <brodie@sf.io>
This commit is contained in:
parent
9eb45fc51a
commit
e3c6a1bf02
@ -927,6 +927,9 @@ int git_config_next(git_config_entry **entry, git_config_iterator *iter)
|
||||
|
||||
void git_config_iterator_free(git_config_iterator *iter)
|
||||
{
|
||||
if (iter == NULL)
|
||||
return;
|
||||
|
||||
iter->free(iter);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user