author | Björn Steinbrink <B.Steinbrink@gmx.de> | |
Sun, 29 Jun 2008 01:21:25 +0000 (03:21 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 29 Jun 2008 02:50:56 +0000 (19:50 -0700) | ||
commit | 5b8a94b1db4beba969d8cbb0e6e45033834b5913 | |
tree | f8096d4e0066ff55878725a960961bd4fb1bd6f4 | tree | snapshot |
parent | 762656e03e80a77aeca6163597640d4e48eee55c | commit | diff |
git cat-file: Fix memory leak in batch mode
When run in batch mode, git cat-file never frees the memory for the blob
contents it is printing. This quickly adds up and causes git-svn to be
hardly usable for imports of large svn repos, because it uses cat-file in
batch mode and cat-file's memory usage easily reaches several hundred MB
without any good reason.
Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When run in batch mode, git cat-file never frees the memory for the blob
contents it is printing. This quickly adds up and causes git-svn to be
hardly usable for imports of large svn repos, because it uses cat-file in
batch mode and cat-file's memory usage easily reaches several hundred MB
without any good reason.
Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-cat-file.c | diff | blob | history |