Fix issue #127, double free for filterevents that use BEV_OPT_CLOSE_ON_FREE