This patch plugs what we think are the remaining sources of valgrind
noise we found when running fsstress under valgrind. The noise is
caused by memory being left unfreed before process termination.
Signed-off-by: Ari Sundholm <ari@tuxera.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
return 1;
}
#endif
+
+ cleanup_flist();
+ free(freq_table);
return 0;
}
}
close(fd);
}
+ free(freq_table);
unlink(buf);
return 0;
}
}
errout:
chdir("..");
+ free(homedir);
if (cleanup) {
sprintf(cmd, "rm -rf %s", buf);
system(cmd);