Commit d39f643a by Carlos Martín Nieto

stream: accept NULL in the free function

parent d07c9f4d
...@@ -62,6 +62,9 @@ GIT_INLINE(int) git_stream_close(git_stream *st) ...@@ -62,6 +62,9 @@ GIT_INLINE(int) git_stream_close(git_stream *st)
GIT_INLINE(void) git_stream_free(git_stream *st) GIT_INLINE(void) git_stream_free(git_stream *st)
{ {
if (!st)
return;
st->free(st); st->free(st);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment