[SSSD] [PATCH] be_spy_create: free be_req and not the long living data
Sumit Bose
sbose at redhat.com
Wed Oct 30 15:49:59 UTC 2013
Hi,
Steeve found some unusual behaviour during his test which led to the
shutdown of the whole SSSD. The attached patch should fix it.
bye,
Sumit
-------------- next part --------------
From 005ac171d7bcc57db262f9df50a8ba22b01ec510 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Wed, 30 Oct 2013 16:49:26 +0100
Subject: [PATCH] be_spy_create: free be_req and not the long living data
---
src/providers/data_provider_be.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index 2f27c50..5aef230 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -275,7 +275,7 @@ static errno_t be_spy_create(TALLOC_CTX *mem_ctx, struct be_req *be_req)
ret = ENOMEM;
goto done;
}
- cli_spy->freectx = mem_ctx;
+ cli_spy->freectx = be_req;
/* Also create a spy on the be_req so that we
* can free the other spy when the be_req
--
1.8.3.1
More information about the sssd-devel
mailing list