[Bug] Fix Memory Leak in Json Load (#5073)

fix json load memory leak #5069
This commit is contained in:
stdpain
2020-12-15 22:55:47 +08:00
committed by GitHub
parent 81c7c0360e
commit 6afa14cda7
9 changed files with 24 additions and 31 deletions

View File

@ -50,8 +50,9 @@ Status BufferedReader::open() {
}
//not support
Status BufferedReader::read_one_message(uint8_t** buf, size_t* length) {
Status BufferedReader::read_one_message(std::unique_ptr<uint8_t[]>* buf, size_t* length) {
return Status::NotSupported("Not support");
}
Status BufferedReader::read(uint8_t* buf, size_t* buf_len, bool* eof) {