Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cat-file: fix a minor memory leak in batch_objects
[gitweb.git]
/
builtin
/
cat-file.c
diff --git
a/builtin/cat-file.c
b/builtin/cat-file.c
index 6b65f56f447ab6856244320a4b2221807c840ea1..1fdb98025885dbe5141982ce34064a2987a68a13 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;
}