summaryrefslogtreecommitdiff
path: root/source4/auth/credentials
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-23 19:46:27 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-25 10:38:44 -0700
commit781796c557025f4bf8c62b903acc1be64acc35b8 (patch)
treec2ebf12db7c3041029d7fc35cc4d5d268d511ef6 /source4/auth/credentials
parenta1d52540a377c587552bcc7d5cc085d3774e1c01 (diff)
downloadsamba-781796c557025f4bf8c62b903acc1be64acc35b8.tar.gz
samba-781796c557025f4bf8c62b903acc1be64acc35b8.tar.bz2
samba-781796c557025f4bf8c62b903acc1be64acc35b8.zip
s4-pycredentials: avoid a tallloc_free on ref
with the new py object structure, we need to unlink not free
Diffstat (limited to 'source4/auth/credentials')
-rw-r--r--source4/auth/credentials/pycredentials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/credentials/pycredentials.c b/source4/auth/credentials/pycredentials.c
index 879d906d6f..b7de7545ec 100644
--- a/source4/auth/credentials/pycredentials.c
+++ b/source4/auth/credentials/pycredentials.c
@@ -319,7 +319,7 @@ static PyObject *py_creds_get_named_ccache(py_talloc_Object *self, PyObject *arg
ret = cli_credentials_get_named_ccache(creds, event_ctx, lp_ctx,
ccache_name, &ccc, &error_string);
- talloc_free(lp_ctx);
+ talloc_unlink(mem_ctx, lp_ctx);
if (ret == 0) {
talloc_steal(ccc, event_ctx);
talloc_free(mem_ctx);