]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/param: don't decref object we don't own
authorNoel Power <noel.power@suse.com>
Mon, 16 Mar 2020 15:27:15 +0000 (15:27 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Mar 2020 20:46:42 +0000 (20:46 +0000)
provision_fn is a borrowed reference we should not
call Py_CLEAR on it

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/param/provision.c

index ad972bbc2dc26c83fb89704f3ef43f9392f0852d..60ce07384f810b3a7bf0ca40155f0ff7eb295165 100644 (file)
@@ -477,7 +477,6 @@ out:
        talloc_free(tmp_mem);
        Py_CLEAR(parameters);
        Py_CLEAR(provision_mod);
-       Py_CLEAR(provision_fn);
        Py_CLEAR(provision_dict);
        Py_CLEAR(py_result);
        Py_CLEAR(py_sid);