diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-11-01 12:27:59 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-11-07 10:59:38 +0100 |
commit | 4537e95f6741ae05ec620e5b46ca1d4a3a1ceae5 (patch) | |
tree | 7e38296058817a7306758cbd5017fe021bcf6571 /src/tests/sss_idmap-tests.c | |
parent | 5c94d34d890c75ec179a32d2cda4fa060d2b5f0c (diff) | |
download | sssd-4537e95f6741ae05ec620e5b46ca1d4a3a1ceae5.tar.gz sssd-4537e95f6741ae05ec620e5b46ca1d4a3a1ceae5.tar.xz sssd-4537e95f6741ae05ec620e5b46ca1d4a3a1ceae5.zip |
free idmapped SIDs correctly
Resolves:
https://fedorahosted.org/sssd/ticket/2133
Diffstat (limited to 'src/tests/sss_idmap-tests.c')
-rw-r--r-- | src/tests/sss_idmap-tests.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tests/sss_idmap-tests.c b/src/tests/sss_idmap-tests.c index 65e61351d..b2de0e70f 100644 --- a/src/tests/sss_idmap-tests.c +++ b/src/tests/sss_idmap-tests.c @@ -280,7 +280,7 @@ START_TEST(idmap_test_uid2sid) "sss_idmap_unix_to_sid returned wrong SID, " "expected [%s], got [%s].", "S-1-5-21-1-2-3-1000", sid); - talloc_free(sid); + sss_idmap_free_sid(idmap_ctx, sid); } END_TEST @@ -304,7 +304,7 @@ START_TEST(idmap_test_uid2dom_sid) "sss_idmap_unix_to_dom_sid returned wrong SID, " "expected [%s], got [%s].", "S-1-5-21-1-2-3-1000", sid); - talloc_free(sid); + sss_idmap_free_sid(idmap_ctx, sid); talloc_free(dom_sid); } END_TEST @@ -330,7 +330,7 @@ START_TEST(idmap_test_uid2bin_sid) "sss_idmap_unix_to_bin_sid returned wrong SID, " "expected [%s], got [%s].", "S-1-5-21-1-2-3-1000", sid); - talloc_free(sid); + sss_idmap_free_sid(idmap_ctx, sid); talloc_free(bin_sid); } END_TEST @@ -385,7 +385,7 @@ START_TEST(idmap_test_sid2dom_sid) "SID strings do not match."); talloc_free(dom_sid); - talloc_free(new_sid); + sss_idmap_free_sid(idmap_ctx, new_sid); } END_TEST @@ -418,7 +418,7 @@ START_TEST(idmap_test_large_and_too_large_sid) "did not return IDMAP_SID_INVALID"); talloc_free(dom_sid); - talloc_free(new_sid); + sss_idmap_free_sid(idmap_ctx, new_sid); } END_TEST @@ -454,7 +454,7 @@ START_TEST(idmap_test_bin_sid2sid) "expected [%s], get [%s]", test_sid, sid); - talloc_free(sid); + sss_idmap_free_sid(idmap_ctx, sid); } END_TEST @@ -528,7 +528,7 @@ START_TEST(idmap_test_smb_sid2sid) "expected [%s], get [%s]", test_sid, sid); - talloc_free(sid); + sss_idmap_free_sid(idmap_ctx, sid); } END_TEST |