Skip to content

Commit

Permalink
Merge branch 'jc/streaming-filter'
Browse files Browse the repository at this point in the history
* jc/streaming-filter:
  streaming: free git_istream upon closing
  • Loading branch information
Junio C Hamano committed Aug 1, 2011
2 parents 59d9ba8 + 95dea6e commit b04f826
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion streaming.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ struct git_istream {

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)
Expand Down

0 comments on commit b04f826

Please sign in to comment.