summaryrefslogtreecommitdiff
path: root/libgpo
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2021-05-03 14:42:10 +1200
committerJule Anger <janger@samba.org>2021-09-16 06:50:11 +0000
commitde40f47cfacc4ec0e7cf784e2fb1268aefa10ea1 (patch)
tree002dca416dea6f38790d1b4ab26676979a928cff /libgpo
parent795e2b4d4871d1d1ecb2ffe268686c82622efc9c (diff)
downloadsamba-de40f47cfacc4ec0e7cf784e2fb1268aefa10ea1.tar.gz
python: Ensure reference counts are properly incremented
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817 (cherry picked from commit 290c1dc0975867a71c02e911708323d1f38b6f96)
Diffstat (limited to 'libgpo')
-rw-r--r--libgpo/pygpo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpo/pygpo.c b/libgpo/pygpo.c
index 29c8b11886e..3452bc77d61 100644
--- a/libgpo/pygpo.c
+++ b/libgpo/pygpo.c
@@ -41,7 +41,7 @@ static PyObject* GPO_get_##ATTR(PyObject *self, void *closure) \
if (gpo_ptr->ATTR) \
return PyUnicode_FromString(gpo_ptr->ATTR); \
else \
- return Py_None; \
+ Py_RETURN_NONE; \
}
GPO_getter(ds_path)
GPO_getter(file_sys_path)