OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07e2383
)
cat-file: fix a minor memory leak in batch_objects
author
Jeff King
<peff@peff.net>
Tue, 7 Jan 2014 22:10:35 +0000
(17:10 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 7 Jan 2014 22:31:52 +0000
(14:31 -0800)
We should always have been freeing our strbuf, but doing so
consistently was annoying until the refactoring in the
previous patch.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/cat-file.c
patch
|
blob
|
history
diff --git
a/builtin/cat-file.c
b/builtin/cat-file.c
index
6b65f56
..
1fdb980
100644
(file)
--- a/
builtin/cat-file.c
+++ b/
builtin/cat-file.c
@@
-304,6
+304,7
@@
static int batch_objects(struct batch_options *opt)
break;
}
+ strbuf_release(&buf);
return retval;
}