summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-11-04 11:59:28 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-11-07 10:59:38 +0100
commit89fdf07e77054b2931673bd1f082cb459607c0ec (patch)
tree57dd0190a47897977c1ba79716a60fc4e3dbe693 /src/tests
parent9e9b2e473ceb93bf3bbf2a6c65eb9c8467ba425a (diff)
downloadsssd-89fdf07e77054b2931673bd1f082cb459607c0ec.tar.gz
sssd-89fdf07e77054b2931673bd1f082cb459607c0ec.tar.xz
sssd-89fdf07e77054b2931673bd1f082cb459607c0ec.zip
free idmapped smb SIDs correctly
Resolves: https://fedorahosted.org/sssd/ticket/2133
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/sss_idmap-tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/sss_idmap-tests.c b/src/tests/sss_idmap-tests.c
index c43e326b1..888be8224 100644
--- a/src/tests/sss_idmap-tests.c
+++ b/src/tests/sss_idmap-tests.c
@@ -476,7 +476,7 @@ START_TEST(idmap_test_smb_sid2dom_sid)
"Samba dom_sid-s do not match.");
sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
- talloc_free(new_smb_sid);
+ sss_idmap_free_smb_sid(idmap_ctx, new_smb_sid);
}
END_TEST
@@ -512,7 +512,7 @@ START_TEST(idmap_test_bin_sid2smb_sid)
fail_unless(memcmp(&test_smb_sid, smb_sid, sizeof(struct dom_sid)) == 0,
"Samba dom_sid structs do not match.");
- talloc_free(smb_sid);
+ sss_idmap_free_smb_sid(idmap_ctx, smb_sid);
}
END_TEST
@@ -543,7 +543,7 @@ START_TEST(idmap_test_sid2smb_sid)
fail_unless(memcmp(&test_smb_sid, smb_sid, sizeof(struct dom_sid)) == 0,
"Samba dom_sid structs do not match.");
- talloc_free(smb_sid);
+ sss_idmap_free_smb_sid(idmap_ctx, smb_sid);
}
END_TEST