From 995d1567265be178b4e45f79ea4562a7041ffa52 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 26 Sep 2011 17:55:47 -0400 Subject: s3-group-mapping: Remove fstrings from GROUP_MAP. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Schneider Autobuild-User: Günther Deschner Autobuild-Date: Wed Oct 12 19:28:12 CEST 2011 on sn-devel-104 --- source3/passdb/py_passdb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source3/passdb/py_passdb.c') diff --git a/source3/passdb/py_passdb.c b/source3/passdb/py_passdb.c index 48b151387a..025e82812c 100644 --- a/source3/passdb/py_passdb.c +++ b/source3/passdb/py_passdb.c @@ -1805,7 +1805,7 @@ static PyObject *py_pdb_enum_group_mapping(pytalloc_Object *self, PyObject *args int unix_only = 0; PyObject *py_domain_sid; struct dom_sid *domain_sid = NULL; - GROUP_MAP *gmap, *group_map; + GROUP_MAP **gmap, *group_map; size_t num_entries; PyObject *py_gmap_list, *py_group_map; int i; @@ -1852,13 +1852,15 @@ static PyObject *py_pdb_enum_group_mapping(pytalloc_Object *self, PyObject *args py_group_map = py_groupmap_new(&PyGroupmap, NULL, NULL); if (py_group_map) { group_map = pytalloc_get_ptr(py_group_map); - *group_map = gmap[i]; + *group_map = *gmap[i]; + talloc_steal(group_map, gmap[i]->nt_name); + talloc_steal(group_map, gmap[i]->comment); PyList_Append(py_gmap_list, py_group_map); } } - free(gmap); + talloc_free(gmap); talloc_free(tframe); return py_gmap_list; -- cgit