1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s4:scripting/python/pyglue.c - add a OOM handling

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Dec 12 20:50:55 CET 2010 on sn-devel-104
This commit is contained in:
Matthias Dieter Wallnöfer 2010-12-12 19:23:53 +01:00
parent 13da83be60
commit 4c373d2013

View File

@ -88,6 +88,10 @@ static PyObject *py_nttime2string(PyObject *self, PyObject *args)
return NULL;
tmp_ctx = talloc_new(NULL);
if (tmp_ctx == NULL) {
PyErr_NoMemory();
return NULL;
}
string = nt_time_string(tmp_ctx, nt);
ret = PyString_FromString(string);