diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-23 19:46:27 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-25 10:38:44 -0700 |
commit | 781796c557025f4bf8c62b903acc1be64acc35b8 (patch) | |
tree | c2ebf12db7c3041029d7fc35cc4d5d268d511ef6 /source4/auth | |
parent | a1d52540a377c587552bcc7d5cc085d3774e1c01 (diff) | |
download | samba-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')
-rw-r--r-- | source4/auth/credentials/pycredentials.c | 2 |
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); |