pyldb: Correct reference counting when returning bools
commit39b08c7c1ee2173e47c8e9d381b89c4d74a5e0f5
authorPetr Viktorin <pviktori@redhat.com>
Tue, 3 Mar 2015 21:29:06 +0000 (3 22:29 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Mar 2015 22:20:06 +0000 (3 23:20 +0100)
treec2f45095d283f72f0fdc10582d0fa2682b75d193
parent6b898481afc7f2d20ca679632b516359e7afaf6a
pyldb: Correct reference counting when returning bools

Simply returning Py_True/PyFalse doesn't increment the bool object's
reference count.

Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c