]> git.sur5r.net Git - openldap/commitdiff
plug leak
authorHoward Chu <hyc@openldap.org>
Wed, 10 May 2006 12:53:36 +0000 (12:53 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 10 May 2006 12:53:36 +0000 (12:53 +0000)
servers/slapd/back-meta/config.c

index 38a48ca88e08dde7b9c5328abeb855e3900248ed..f968e0c4426a50f08be3e0168370267202cf986c 100644 (file)
@@ -48,7 +48,8 @@ meta_back_new_target(
 
        mt->mt_rwmap.rwm_rw = rewrite_info_init( REWRITE_MODE_USE_DEFAULT );
        if ( mt->mt_rwmap.rwm_rw == NULL ) {
-                return -1;
+               ch_free( mt );
+               return -1;
        }