Clean up reference used with PyDict_Setxxx
authorNoel Power <noel.power@suse.com>
Thu, 31 Jan 2019 17:01:26 +0000 (17:01 +0000)
committerNoel Power <npower@samba.org>
Thu, 7 Feb 2019 16:17:46 +0000 (17:17 +0100)
commit61670169d5241f742bc80bec37b02800af8c8517
tree5d781a826e791d6355b1878da769c5f286b5085e
parent2814690d8fc302e79b041b3175e85bef1ac98e51
Clean up reference used with PyDict_Setxxx

PyDictSetxxx methods don't steal reference so if the items added
to the dictionary were created just for the purpose of inserting
into the dict then we need to decref them.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Thu Feb  7 17:17:46 CET 2019 on sn-devel-144
source3/passdb/py_passdb.c
source4/dsdb/pydsdb.c
source4/librpc/ndr/py_auth.c
source4/librpc/ndr/py_security.c
source4/librpc/ndr/py_xattr.c
source4/librpc/rpc/pyrpc_util.c