mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
Finish adding strings to all talloc_init() calls.
Jeremy.
This commit is contained in:
@@ -62,7 +62,7 @@ PyObject *spoolss_openprinter(PyObject *self, PyObject *args, PyObject *kw)
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!(mem_ctx = talloc_init())) {
|
||||
if (!(mem_ctx = talloc_init("spoolss_openprinter"))) {
|
||||
PyErr_SetString(spoolss_error,
|
||||
"unable to init talloc context\n");
|
||||
goto done;
|
||||
@@ -310,7 +310,7 @@ PyObject *spoolss_enumprinters(PyObject *self, PyObject *args, PyObject *kw)
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!(mem_ctx = talloc_init())) {
|
||||
if (!(mem_ctx = talloc_init("spoolss_enumprinters"))) {
|
||||
PyErr_SetString(
|
||||
spoolss_error, "unable to init talloc context\n");
|
||||
goto done;
|
||||
@@ -445,7 +445,7 @@ PyObject *spoolss_addprinterex(PyObject *self, PyObject *args, PyObject *kw)
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!(mem_ctx = talloc_init())) {
|
||||
if (!(mem_ctx = talloc_init("spoolss_addprinterex"))) {
|
||||
PyErr_SetString(
|
||||
spoolss_error, "unable to init talloc context\n");
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user