Merge branch 'jc/streaming-filter'

* jc/streaming-filter:
  streaming: free git_istream upon closing
This commit is contained in:
Junio C Hamano 2011-08-01 15:00:29 -07:00
commit b04f826bf6

View File

@ -94,7 +94,9 @@ struct git_istream {
int close_istream(struct git_istream *st) int close_istream(struct git_istream *st)
{ {
return st->vtbl->close(st); int r = st->vtbl->close(st);
free(st);
return r;
} }
ssize_t read_istream(struct git_istream *st, char *buf, size_t sz) ssize_t read_istream(struct git_istream *st, char *buf, size_t sz)