summaryrefslogtreecommitdiff
path: root/tests/fs-tests
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-20 16:14:12 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-22 14:29:53 +0300
commit9211a3ba80f0300b5476a9c015e4aa80c18e4fbf (patch)
tree8e58db4fbf5941a23e53a46d0b7cb9a5b6c4c0eb /tests/fs-tests
parent497ff2cea3749c4b3829b285cc7ce57ed47abf6e (diff)
fs-tests: integck: do not forget to free mount_opts
The test forgets to free the args.mount_opts string on exit - fix this. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
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);