free entry in a cleaner manner (ITS#4801?)

This commit is contained in:
Pierangelo Masarati 2007-01-11 22:13:54 +00:00
parent 78362d5acf
commit 270dfe4db8

View File

@ -298,6 +298,8 @@ dynlist_sc_update( Operation *op, SlapReply *rs )
done:;
if ( rs->sr_flags & REP_ENTRY_MUSTBEFREED ) {
entry_free( rs->sr_entry );
rs->sr_entry = NULL;
rs->sr_flags ^= REP_ENTRY_MUSTBEFREED;
}
return 0;