summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-10-30 16:49:26 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-10-30 17:05:19 +0100
commit10b7a194f159e5ba1243abc1e60a563e8d9bbfca (patch)
tree3931e1cd72ea030f3072bfca584f6ba0cbce353b /src/providers
parentea8baa539de5978ff8ec7eb6f945c5ff2b93a272 (diff)
downloadsssd-10b7a194f159e5ba1243abc1e60a563e8d9bbfca.tar.gz
sssd-10b7a194f159e5ba1243abc1e60a563e8d9bbfca.tar.xz
sssd-10b7a194f159e5ba1243abc1e60a563e8d9bbfca.zip
be_spy_create: free be_req and not the long living data
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/data_provider_be.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index dd9c8d429..37b687f25 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