author | Ingo Molnar <mingo@elte.hu> | |
Thu, 14 Apr 2005 10:43:44 +0000 (12:43 +0200) | ||
committer | Petr Baudis <xpasky@machine.sinus.cz> | |
Wed, 11 May 2005 21:08:20 +0000 (23:08 +0200) | ||
commit | c599caca3ab7d5d66d7cadbbf589c2e4b5587d3e | |
tree | 3307e3b228f1134c554cca619a7ef6e5643a4701 | tree | snapshot |
parent | aceedfe32e766b169d480c0ec24777d1b09bb118 | commit | diff |
[patch] git: cleanup in ls-tree.c
cleanup: this patch adds a free() to ls-tree.c.
(Technically it's not a memory leak yet because the buffer is allocated
once by the function and then the utility exits - but it's a tad cleaner
to not leave such assumptions in the code, so that if someone reuses the
function (or extends the utility to include a loop) the uncleanliness
doesnt develop into a real memory leak.)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Forward-ported.
Signed-off-by: Petr Baudis <pasky@ucw.cz>
cleanup: this patch adds a free() to ls-tree.c.
(Technically it's not a memory leak yet because the buffer is allocated
once by the function and then the utility exits - but it's a tad cleaner
to not leave such assumptions in the code, so that if someone reuses the
function (or extends the utility to include a loop) the uncleanliness
doesnt develop into a real memory leak.)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Forward-ported.
Signed-off-by: Petr Baudis <pasky@ucw.cz>
ls-tree.c | diff | blob | history |