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