summaryrefslogtreecommitdiff
path: root/tests/fs-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fs-tests')
-rw-r--r--tests/fs-tests/integrity/integck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 6de4a42..4b9b0f0 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -2416,8 +2416,7 @@ static void parse_mount_options(const char *mount_opts)
* so duplicate it.
*/
tmp = dup_string(mount_opts);
- p = opts = calloc(1, strlen(mount_opts) + 1);
- CHECK(opts != NULL);
+ p = opts = zalloc(strlen(mount_opts) + 1);
opt = strtok(tmp, ",");
while (opt) {
@@ -2719,6 +2718,7 @@ int main(int argc, char *argv[])
out_free:
free(random_name_buf);
+ free(fsinfo.mount_opts);
free(fsinfo.mount_point);
free(fsinfo.fstype);
free(fsinfo.fsdev);