summaryrefslogtreecommitdiffstats
path: root/src/tests/sbus_codegen_tests.c
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-06-05 11:16:04 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-06-18 14:55:08 +0200
commitba99aa00a305d298f65379e3add7536553c82455 (patch)
tree41cad13054503fd3acadca5b48813c2f32c2762d /src/tests/sbus_codegen_tests.c
parent73b68aa708e1ffa0e0ab5b021fa93ff3a0f484b1 (diff)
downloadsssd-ba99aa00a305d298f65379e3add7536553c82455.tar.gz
sssd-ba99aa00a305d298f65379e3add7536553c82455.tar.xz
sssd-ba99aa00a305d298f65379e3add7536553c82455.zip
sbus_codegen_tests: free memory context
The memory context was not freed and therefore a destructor that closes connection to D-Bus and performs cleanup task was not executed. Resolves: https://fedorahosted.org/sssd/ticket/2347 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tests/sbus_codegen_tests.c')
-rw-r--r--src/tests/sbus_codegen_tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/sbus_codegen_tests.c b/src/tests/sbus_codegen_tests.c
index 358dce62d..d3d5d4680 100644
--- a/src/tests/sbus_codegen_tests.c
+++ b/src/tests/sbus_codegen_tests.c
@@ -878,6 +878,7 @@ START_TEST(test_get_basic_types)
DBUS_TYPE_OBJECT_PATH, &path_val);
ck_assert_str_eq(path_val, "/");
+ talloc_free(ctx);
}
END_TEST
@@ -1040,6 +1041,7 @@ START_TEST(test_get_basic_array_types)
ck_assert_str_eq(path_arr_val[0], pilot_path_array[0]);
ck_assert_str_eq(path_arr_val[1], pilot_path_array[1]);
+ talloc_free(ctx);
}
END_TEST
@@ -1343,6 +1345,8 @@ START_TEST(test_getall_basic_types)
}
/* Also all properties returned from the bus must be accounted for */
ck_assert_uint_eq(num_prop, N_ELEMENTS(pilot_properties)-1);
+
+ talloc_free(ctx);
}
END_TEST