]> git.sur5r.net Git - openldap/commitdiff
plug leaks
authorPierangelo Masarati <ando@openldap.org>
Tue, 6 Dec 2005 23:10:14 +0000 (23:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 6 Dec 2005 23:10:14 +0000 (23:10 +0000)
servers/slapd/overlays/syncprov.c
servers/slapd/syncrepl.c

index a62d0a0d0d8829ca15a8d54f9adcb78d6aafc56a..e5338de384eb305cd0c00e3b6f33327647ea6fcc 100644 (file)
@@ -2419,6 +2419,9 @@ syncprov_db_destroy(
        syncprov_info_t *si = (syncprov_info_t *)on->on_bi.bi_private;
 
        if ( si ) {
+               if ( si->si_logs ) {
+                       ch_free( si->si_logs );
+               }
                ldap_pvt_thread_mutex_destroy( &si->si_mods_mutex );
                ldap_pvt_thread_mutex_destroy( &si->si_ops_mutex );
                ldap_pvt_thread_mutex_destroy( &si->si_csn_mutex );
index 2fd3d59f594084b0e1d2a494d04d859ae75b5457..8209e2d91cbe17e1551ff7538f02ed0111a2f7ed 100644 (file)
@@ -695,6 +695,7 @@ do_syncrep2(
                                if ( BER_BVISEMPTY( &syncUUID ) ) {
                                        Debug( LDAP_DEBUG_ANY, "do_syncrep2: "
                                                "got empty syncUUID\n", 0, 0, 0 );
+                                       ldap_controls_free( rctrls );
                                        rc = -1;
                                        goto done;
                                }