diff options
author | Sumit Bose <sbose@redhat.com> | 2013-10-30 16:49:26 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-10-30 17:02:07 +0100 |
commit | 328ac6f72e33af7c2e8602462c57c34da6aeaa98 (patch) | |
tree | cb369c11a5d5be1894e9f751ec47f650c78d6380 /src/providers/data_provider_be.c | |
parent | ed2f9b9b444f146429a28d02b1e3b7c97a5cfad7 (diff) | |
download | sssd-328ac6f72e33af7c2e8602462c57c34da6aeaa98.tar.gz sssd-328ac6f72e33af7c2e8602462c57c34da6aeaa98.tar.xz sssd-328ac6f72e33af7c2e8602462c57c34da6aeaa98.zip |
be_spy_create: free be_req and not the long living data
Diffstat (limited to 'src/providers/data_provider_be.c')
-rw-r--r-- | src/providers/data_provider_be.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index 2f27c5012..5aef2308a 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 |