vendor/libgit2/src/transports/git.c in rugged-0.22.2 vs vendor/libgit2/src/transports/git.c in rugged-0.23.0b1

- old
+ new

@@ -134,11 +134,10 @@ GIT_UNUSED(ret); t->current_stream = NULL; - git_stream_close(s->io); git_stream_free(s->io); git__free(s->url); git__free(s); } @@ -153,11 +152,11 @@ git_proto_stream *s; if (!stream) return -1; - s = git__calloc(sizeof(git_proto_stream), 1); + s = git__calloc(1, sizeof(git_proto_stream)); GITERR_CHECK_ALLOC(s); s->parent.subtransport = &t->parent; s->parent.read = git_proto_stream_read; s->parent.write = git_proto_stream_write; @@ -346,10 +345,10 @@ git_subtransport *t; if (!out) return -1; - t = git__calloc(sizeof(git_subtransport), 1); + t = git__calloc(1, sizeof(git_subtransport)); GITERR_CHECK_ALLOC(t); t->owner = owner; t->parent.action = _git_action; t->parent.close = _git_close;