This patch fixes the memory leaks we found when running fsstress under valgrind. Signed-off-by: Ari Sundholm <ari@xxxxxxxxxx> --- ltp/fsstress.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ltp/fsstress.c b/ltp/fsstress.c index 96f48b1..13d5dd5 100644 --- a/ltp/fsstress.c +++ b/ltp/fsstress.c @@ -614,6 +614,9 @@ int main(int argc, char **argv) return 1; } #endif + + cleanup_flist(); + free(freq_table); return 0; } } @@ -640,6 +643,7 @@ int main(int argc, char **argv) close(fd); } + free(freq_table); unlink(buf); return 0; } @@ -997,6 +1001,7 @@ doproc(void) } errout: chdir(".."); + free(homedir); if (cleanup) { sprintf(cmd, "rm -rf %s", buf); system(cmd); -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html