fix memory bug,adjust buddy struct