mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 08:39:37 -05:00
Paranoia for prev commit
This commit is contained in:
parent
8133e7005e
commit
a16eea9d8e
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue