summaryrefslogtreecommitdiffstats
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 11:16:02 +0100
commitd7b7f030888b0f327c231ba64242262d60f8a2e4 (patch)
treec4a24984bd1eb7d9ccd439780c2e352a318afb49
parentfa23b0a653a8256383b74f4f725d5b795b778be1 (diff)
downloadsssd-d7b7f030888b0f327c231ba64242262d60f8a2e4.tar.gz
sssd-d7b7f030888b0f327c231ba64242262d60f8a2e4.tar.xz
sssd-d7b7f030888b0f327c231ba64242262d60f8a2e4.zip
free idmapped smb SIDs correctly
Resolves: https://fedorahosted.org/sssd/ticket/2133
-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