Cleanup (decref) some objects added to list.
authorNoel Power <noel.power@suse.com>
Wed, 23 Jan 2019 18:43:43 +0000 (18:43 +0000)
committerNoel Power <npower@samba.org>
Thu, 7 Feb 2019 12:44:30 +0000 (13:44 +0100)
commit2814690d8fc302e79b041b3175e85bef1ac98e51
tree4e0ed6b02f963aa34f3a0dcf0d067574452145d0
parente29c34942dcc29721f8f3dc8dbb58a18afda1e60
Cleanup (decref) some objects added to list.

PyList_Append doesn't steal references, so if the item created is
a temp object, created just to be added to the list we need to
 decref the item appended in order for it to be released.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/pyldb.c
source3/libsmb/pylibsmb.c
source3/passdb/py_passdb.c
source4/lib/policy/pypolicy.c