pyldb: Properly preallocate result control list
commitf87e6df34ac05b352c6c74bf1fd1d678ee23217f
authorPetr Viktorin <pviktori@redhat.com>
Tue, 3 Mar 2015 21:29:08 +0000 (3 22:29 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Mar 2015 22:20:06 +0000 (3 23:20 +0100)
treeff3b9e75a25d5df20f1c53a98a11d60f5a18840e
parent92ff259f409cfeffc24ef9d7db8ab16217367bab
pyldb: Properly preallocate result control list

The list was always allocated with size 1, so
if there is more than 1 result control, the additional
items would not be added in the list, and would
become leaked references.

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