]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9081 Do not leak sb (ITS#8755 regression)
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 23 Sep 2019 16:27:18 +0000 (17:27 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 15 Oct 2019 00:20:33 +0000 (00:20 +0000)
libraries/libldap/unbind.c

index b1597cb03d42071f098a4e3f97fd698801a872e7..08354ce7e335d74a8404815c954267fae996cf8a 100644 (file)
@@ -134,6 +134,7 @@ ldap_ld_free(
        /* Should already be closed by ldap_free_connection which knows not to free
         * this one */
        ber_int_sb_destroy( ld->ld_sb );
+       LBER_FREE( ld->ld_sb );
 
        LDAP_MUTEX_LOCK( &ld->ld_ldopts_mutex );