diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-01-06 04:13:57 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-01-06 04:13:57 +0100 |
commit | d2c70d24e12293d9b4272eb310a6a4c4582b2d92 (patch) | |
tree | 5cc5f08da2608a20e2f961b7fecdd50e9752ec50 /source4/librpc/rpc/pyrpc.c | |
parent | 1f8b6238dd161d29ee92902ea006158e180fa87b (diff) | |
download | samba-d2c70d24e12293d9b4272eb310a6a4c4582b2d92.tar.gz samba-d2c70d24e12293d9b4272eb310a6a4c4582b2d92.tar.bz2 samba-d2c70d24e12293d9b4272eb310a6a4c4582b2d92.zip |
py: Properly increase the reference counter of Py_None.
Diffstat (limited to 'source4/librpc/rpc/pyrpc.c')
-rw-r--r-- | source4/librpc/rpc/pyrpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c index a15c3eaac0..9863a6aeb5 100644 --- a/source4/librpc/rpc/pyrpc.c +++ b/source4/librpc/rpc/pyrpc.c @@ -144,7 +144,7 @@ static PyObject *py_iface_server_name(PyObject *obj, void *closure) server_name = dcerpc_server_name(iface->pipe); if (server_name == NULL) - return Py_None; + Py_RETURN_NONE; return PyString_FromString(server_name); } @@ -284,7 +284,7 @@ static PyObject *py_iface_alter_context(PyObject *self, PyObject *args, PyObject return NULL; } - return Py_None; + Py_RETURN_NONE; } PyObject *py_dcerpc_interface_init_helper(PyTypeObject *type, PyObject *args, PyObject *kwargs, const struct ndr_interface_table *table) |