summaryrefslogtreecommitdiff
path: root/source3/python/py_lsa.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-05-09 12:43:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:50 -0500
commit3c181a88c6c03cde3d6abb917c656bbe6be8a130 (patch)
tree25959680a7e24eb8f9856c7735c597dfcb264157 /source3/python/py_lsa.c
parent08355754151b2d02b2102bc76e94b63ffffdf408 (diff)
downloadsamba-3c181a88c6c03cde3d6abb917c656bbe6be8a130.tar.gz
samba-3c181a88c6c03cde3d6abb917c656bbe6be8a130.tar.bz2
samba-3c181a88c6c03cde3d6abb917c656bbe6be8a130.zip
r6678: fix python python after talloc() shakeup
(This used to be commit f629bffb1a6b8c2ea54fcfe33865b43559abbc77)
Diffstat (limited to 'source3/python/py_lsa.c')
-rw-r--r--source3/python/py_lsa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/python/py_lsa.c b/source3/python/py_lsa.c
index aab526a489..bf9d466185 100644
--- a/source3/python/py_lsa.c
+++ b/source3/python/py_lsa.c
@@ -167,7 +167,7 @@ static PyObject *lsa_lookup_names(PyObject *self, PyObject *args)
/* Convert list to char ** array */
num_names = PyList_Size(py_names);
- names = (const char **)talloc(mem_ctx, num_names * sizeof(char *));
+ names = (const char **)_talloc(mem_ctx, num_names * sizeof(char *));
for (i = 0; i < num_names; i++) {
PyObject *obj = PyList_GetItem(py_names, i);
@@ -180,7 +180,7 @@ static PyObject *lsa_lookup_names(PyObject *self, PyObject *args)
/* Just a single element */
num_names = 1;
- names = (const char **)talloc(mem_ctx, sizeof(char *));
+ names = (const char **)_talloc(mem_ctx, sizeof(char *));
names[0] = PyString_AsString(py_names);
}
@@ -241,7 +241,7 @@ static PyObject *lsa_lookup_sids(PyObject *self, PyObject *args,
/* Convert dictionary to char ** array */
num_sids = PyList_Size(py_sids);
- sids = (DOM_SID *)talloc(mem_ctx, num_sids * sizeof(DOM_SID));
+ sids = (DOM_SID *)_talloc(mem_ctx, num_sids * sizeof(DOM_SID));
memset(sids, 0, num_sids * sizeof(DOM_SID));
@@ -259,7 +259,7 @@ static PyObject *lsa_lookup_sids(PyObject *self, PyObject *args,
/* Just a single element */
num_sids = 1;
- sids = (DOM_SID *)talloc(mem_ctx, sizeof(DOM_SID));
+ sids = (DOM_SID *)_talloc(mem_ctx, sizeof(DOM_SID));
if (!string_to_sid(&sids[0], PyString_AsString(py_sids))) {
PyErr_SetString(PyExc_ValueError, "string_to_sid failed");