summaryrefslogtreecommitdiff
path: root/streaming.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-08-01 15:00:29 -0700
committerJunio C Hamano <gitster@pobox.com>2011-08-01 15:00:29 -0700
commitb04f826bf6e1b55e5bffdef5aedc83c202569f60 (patch)
treed3cf5564b1b5894d1ac8c79154150ceeaf79423e /streaming.c
parent59d9ba869e900bf4da9822f417e4d40a710d8063 (diff)
parent95dea6eb507109f64ab80f7fa2f73c39a0d14e7c (diff)
downloadgit-b04f826bf6e1b55e5bffdef5aedc83c202569f60.tar.gz
Merge branch 'jc/streaming-filter'
* jc/streaming-filter: streaming: free git_istream upon closing
Diffstat (limited to 'streaming.c')
-rw-r--r--streaming.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/streaming.c b/streaming.c
index 25c9a209bb..71072e1b1d 100644
--- a/streaming.c
+++ b/streaming.c
@@ -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)