fix several string memory leak bug
.