Skip to content

Commit b04f826

Browse files
committed
Merge branch 'jc/streaming-filter'
* jc/streaming-filter: streaming: free git_istream upon closing
2 parents 59d9ba8 + 95dea6e commit b04f826

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

streaming.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ struct git_istream {
9494

9595
int close_istream(struct git_istream *st)
9696
{
97-
return st->vtbl->close(st);
97+
int r = st->vtbl->close(st);
98+
free(st);
99+
return r;
98100
}
99101

100102
ssize_t read_istream(struct git_istream *st, char *buf, size_t sz)

0 commit comments

Comments
 (0)