mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Paranoia for prev commit
This commit is contained in:
parent
8133e7005e
commit
a16eea9d8e
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user