improve struct malloc/free performance, by returning dirty memory on malloc