pidl: Fix Generated ndr python code to DECREF imported modules
authorNoel Power <noel.power@suse.com>
Wed, 23 Jan 2019 17:10:44 +0000 (17:10 +0000)
committerNoel Power <npower@samba.org>
Thu, 7 Feb 2019 12:44:30 +0000 (13:44 +0100)
commit85b7574b91f3dfcf751de8ae81876dc64fc5e686
treed732e87897dd963830a7403f4d00db325b5476f3
parent53d973f59c3514f9c288cc8e53a682176a5fc415
pidl: Fix Generated ndr python code to DECREF imported modules

Generated code calls Py_ImportModule but in all error returns
and also successful exit the code fails to decrement reference to
loaded modules in MODULE_INIT_FUNC function.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
pidl/lib/Parse/Pidl/Samba4/Python.pm