mirror of
https://git.proxmox.com/git/libgit2
synced 2025-11-03 11:12:27 +00:00
stream: accept NULL in the free function
This commit is contained in:
parent
d07c9f4d2a
commit
d39f643a0a
@ -62,6 +62,9 @@ GIT_INLINE(int) git_stream_close(git_stream *st)
|
||||
|
||||
GIT_INLINE(void) git_stream_free(git_stream *st)
|
||||
{
|
||||
if (!st)
|
||||
return;
|
||||
|
||||
st->free(st);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user