Blob Blame History Raw
From 6b44bc4465b954183f8a52fbb05da6b63b17f0d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Mon, 4 Nov 2013 11:59:28 +0100
Subject: [PATCH 21/31] free idmapped smb SIDs correctly

Resolves:
https://fedorahosted.org/sssd/ticket/2133
---
 src/tests/sss_idmap-tests.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tests/sss_idmap-tests.c b/src/tests/sss_idmap-tests.c
index c43e326b1f49ac74c387c76e58f2f32efdce40ff..888be82248045058093d6943ef73742d8812eac3 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
 
-- 
1.8.4.2