Paranoia for prev commit

This commit is contained in:
Howard Chu 2007-08-16 20:03:27 +00:00
parent 8133e7005e
commit a16eea9d8e

View File

@ -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 );