mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
fsstress: Eliminate valgrind noise
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user