remove allocator's free method;bug fix.