stream: accept NULL in the free function

This commit is contained in:
Carlos Martín Nieto 2015-10-13 19:34:07 +02:00
parent d07c9f4d2a
commit d39f643a0a

View File

@ -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);
}