[patch] git: fix memory leak in show-diff.c
- From
- Ingo Molnar <mingo@elte.hu>
- Date
- Apr 14, 2005, 12:08 UTC
- Message-ID
- <20050414120834.GA14290@elte.hu>
- In-Reply-To
- <20050414112638.GA12593@elte.hu>
this patch fixes a memory leak in show-diff.c.
Ingo
Signed-off-by: Ingo Molnar <mingo@elte.hu>
--- show-diff.c.orig +++ show-diff.c
@@ -53,6 +53,7 @@ static void show_diff_empty(struct cache printf("\n"); fflush(stdout); } + free(old); } int main(int argc, char **argv)