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

index 0fe2a04907c8ba3593ba0ebe40bed77fddc7a0d8..845370a8123df3ab4ad5bd3112d26f907bb3c551 100644 (file)
@@ -1044,6 +1044,14 @@ retcode_db_destroy( BackendDB *be )
                        ch_free( rdi );
                }
 
+               if ( !BER_BVISNULL( &rd->rd_pdn ) ) {
+                       ber_memfree( rd->rd_pdn.bv_val );
+               }
+
+               if ( !BER_BVISNULL( &rd->rd_npdn ) ) {
+                       ber_memfree( rd->rd_npdn.bv_val );
+               }
+
                ber_memfree( rd );
        }