From: Andre Noll Date: Sat, 31 May 2008 21:33:18 +0000 (+0200) Subject: Fix two memory leaks. X-Git-Tag: v0.0.2~25 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=f5049d14a17ddcd0fe70e55090086f2f70ff5de1;p=adu.git Fix two memory leaks. --- 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--;