Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/streaming-filter'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 1 Aug 2011 22:00:29 +0000
(15:00 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 1 Aug 2011 22:00:29 +0000
(15:00 -0700)
* jc/streaming-filter:
streaming: free git_istream upon closing
streaming.c
patch
|
blob
|
history
raw
(from parent 1:
59d9ba8
)
diff --git
a/streaming.c
b/streaming.c
index 25c9a209bb1ba9cec8bb49623ae45fc19fdca2c7..71072e1b1da670cdb4b048a3a6e83a4ae806bf5f 100644
(file)
--- 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)