From f5049d14a17ddcd0fe70e55090086f2f70ff5de1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 31 May 2008 23:33:18 +0200 Subject: [PATCH] Fix two memory leaks. --- adu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adu.c b/adu.c index 9b800ea..3a676c4 100644 --- a/adu.c +++ b/adu.c @@ -761,6 +761,7 @@ static int global_stats_loop_function(struct osl_row *row, void *data) printf("%s%s\n", (gsi->flags & (GSF_PRINT_BYTES | GSF_PRINT_FILES))? "" : "\t", dirname); + free(dirname); } if (gsi->count > 0) gsi->count--; @@ -878,6 +879,7 @@ static int user_stats_loop_function(struct osl_row *row, void *data) printf("%s%s\n", (usi->flags & (USF_PRINT_BYTES | USF_PRINT_FILES))? "" : "\t", dirname); + free(dirname); } if (usi->count > 0) usi->count--; -- 2.39.5