]> git.sur5r.net Git - openldap/commitdiff
plug one time leak
authorPierangelo Masarati <ando@openldap.org>
Wed, 9 Nov 2005 02:48:37 +0000 (02:48 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 9 Nov 2005 02:48:37 +0000 (02:48 +0000)
servers/slapd/overlays/retcode.c

index e285d57c31786b87a01a89fb8dfc3983770ef158..0fe2a04907c8ba3593ba0ebe40bed77fddc7a0d8 100644 (file)
@@ -1030,6 +1030,10 @@ retcode_db_destroy( BackendDB *be )
                                ber_memfree( rdi->rdi_matched.bv_val );
                        }
 
+                       if ( rdi->rdi_ref ) {
+                               ber_bvarray_free( rdi->rdi_ref );
+                       }
+
                        BER_BVZERO( &rdi->rdi_e.e_name );
                        BER_BVZERO( &rdi->rdi_e.e_nname );