solve hdc memory leak bug