1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

fixed memory leak

This commit is contained in:
Falk Werner 2020-04-04 18:20:45 +02:00
parent 9095fbc1b7
commit 98e02240e9

View File

@ -41,6 +41,7 @@ TEST(wfp_impl_open, invoke_provider)
json_array_append_new(params, json_integer(flags)); json_array_append_new(params, json_integer(flags));
wfp_impl_open(&context, params, 42); wfp_impl_open(&context, params, 42);
json_decref(params);
} }
TEST(wfp_impl_open, fail_invalid_param_count) TEST(wfp_impl_open, fail_invalid_param_count)
@ -56,6 +57,7 @@ TEST(wfp_impl_open, fail_invalid_param_count)
json_array_append_new(params, json_integer(23)); json_array_append_new(params, json_integer(23));
wfp_impl_open(&context, params, 42); wfp_impl_open(&context, params, 42);
json_decref(params);
} }
TEST(wfp_impl_open, fail_invalid_inode_type) TEST(wfp_impl_open, fail_invalid_inode_type)
@ -72,6 +74,7 @@ TEST(wfp_impl_open, fail_invalid_inode_type)
json_array_append_new(params, json_integer(0)); json_array_append_new(params, json_integer(0));
wfp_impl_open(&context, params, 42); wfp_impl_open(&context, params, 42);
json_decref(params);
} }
TEST(wfp_impl_open, fail_invalid_flags_type) TEST(wfp_impl_open, fail_invalid_flags_type)
@ -88,6 +91,7 @@ TEST(wfp_impl_open, fail_invalid_flags_type)
json_array_append_new(params, json_string("")); json_array_append_new(params, json_string(""));
wfp_impl_open(&context, params, 42); wfp_impl_open(&context, params, 42);
json_decref(params);
} }
TEST(wfp_impl_open, default_responds_error) TEST(wfp_impl_open, default_responds_error)