[SSSD] [PATCH] PAC: Free config attribute when it's processed

Jakub Hrozek jhrozek at redhat.com
Tue Nov 12 12:40:50 UTC 2013


We kept the string form of the PAC UID list allocated on top responder
context for no reason.
-------------- next part --------------
>From 4940a71c4881d116f14c6dcee05315b79c5ea5a3 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Fri, 8 Nov 2013 15:55:34 +0100
Subject: [PATCH] PAC: Free config attribute when it's processed

---
 src/responder/pac/pacsrv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/responder/pac/pacsrv.c b/src/responder/pac/pacsrv.c
index 7a736adaea5806ca63de0b72a40ec308e8ba8629..7fdc476a2633a55c79ee00b17d136b16408dca9e 100644
--- a/src/responder/pac/pacsrv.c
+++ b/src/responder/pac/pacsrv.c
@@ -157,6 +157,7 @@ int pac_process_init(TALLOC_CTX *mem_ctx,
     ret = csv_string_to_uid_array(pac_ctx->rctx, uid_str, true,
                                   &pac_ctx->rctx->allowed_uids_count,
                                   &pac_ctx->rctx->allowed_uids);
+    talloc_free(uid_str);
     if (ret != EOK) {
         DEBUG(SSSDBG_FATAL_FAILURE, ("Failed to set allowed UIDs.\n"));
         goto fail;
-- 
1.8.4.2



More information about the sssd-devel mailing list