summaryrefslogtreecommitdiff
path: root/libgpo/pygpo.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2016-08-17 11:58:02 +0200
committerJeremy Allison <jra@samba.org>2022-12-16 20:38:32 +0000
commit39e8489dfc51b2293afa13d58b167819b46918dc (patch)
tree1969bf1ac7da4d1cec3f3694fc75de750b95c9ad /libgpo/pygpo.c
parent89828c64c9a8114bb5f596bc007a7c126e803d80 (diff)
downloadsamba-39e8489dfc51b2293afa13d58b167819b46918dc.tar.gz
s3-librpc: add ads.idl and convert ads_struct to talloc.
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'libgpo/pygpo.c')
-rw-r--r--libgpo/pygpo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgpo/pygpo.c b/libgpo/pygpo.c
index 485c96f4f2d..3070e0a6394 100644
--- a/libgpo/pygpo.c
+++ b/libgpo/pygpo.c
@@ -229,9 +229,9 @@ static PyObject* py_ads_connect(ADS *self,
PyErr_SetString(PyExc_RuntimeError, "Uninitialized");
return NULL;
}
- TALLOC_FREE(self->ads_ptr->auth.user_name);
- TALLOC_FREE(self->ads_ptr->auth.password);
- TALLOC_FREE(self->ads_ptr->auth.realm);
+ ADS_TALLOC_CONST_FREE(self->ads_ptr->auth.user_name);
+ ADS_TALLOC_CONST_FREE(self->ads_ptr->auth.password);
+ ADS_TALLOC_CONST_FREE(self->ads_ptr->auth.realm);
if (self->cli_creds) {
self->ads_ptr->auth.user_name = talloc_strdup(self->ads_ptr,
cli_credentials_get_username(self->cli_creds));