]> git.sur5r.net Git - openldap/commitdiff
ITS#4003 frontend->be_replogfile can legitimately be set.
authorHoward Chu <hyc@openldap.org>
Mon, 5 Sep 2005 02:42:24 +0000 (02:42 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 5 Sep 2005 02:42:24 +0000 (02:42 +0000)
servers/slapd/backend.c

index 25e009e1ca56b1ba65d329f216c2770617fc47db..f6f868a30d52d0b061e65f49992eb8b010aba4c6 100644 (file)
@@ -477,7 +477,9 @@ int backend_destroy(void)
                }
                acl_destroy( bd->be_acl, frontendDB->be_acl );
 
-               assert( bd->be_replogfile == NULL );
+               if ( bd->be_replogfile != NULL ) {
+                       free( bd->be_replogfile );
+               }
                assert( bd->be_replica == NULL );
        }