From d2c70d24e12293d9b4272eb310a6a4c4582b2d92 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 6 Jan 2009 04:13:57 +0100 Subject: py: Properly increase the reference counter of Py_None. --- pidl/lib/Parse/Pidl/Samba4/Python.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pidl/lib') diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index 2474bf41a8..938ea36028 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -283,7 +283,7 @@ sub PythonStruct($$$$$$) $self->deindent; $self->pidl("}"); $self->pidl(""); - $self->pidl("return Py_None;"); + $self->pidl("Py_RETURN_NONE;"); $self->deindent; $self->pidl("}"); $self->pidl(""); -- cgit