diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-05-03 14:42:10 +1200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2021-09-16 06:50:11 +0000 |
commit | de40f47cfacc4ec0e7cf784e2fb1268aefa10ea1 (patch) | |
tree | 002dca416dea6f38790d1b4ab26676979a928cff /libgpo | |
parent | 795e2b4d4871d1d1ecb2ffe268686c82622efc9c (diff) | |
download | samba-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.c | 2 |
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) |