From a16eea9d8e915edf6ffc357d70c355ec30d9c44d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 16 Aug 2007 20:03:27 +0000 Subject: [PATCH] Paranoia for prev commit --- servers/slapd/overlays/ppolicy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 83da96c3ee..2900c64c31 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -2138,8 +2138,10 @@ ppolicy_close( /* Perhaps backover should provide bi_destroy hooks... */ ov_count--; - if ( !ov_count ) + if ( ov_count <=0 && pwcons ) { free( pwcons ); + pwcons = NULL; + } free( pi->def_policy.bv_val ); free( pi ); -- 2.39.5