Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix: fix memory leak in dsn_message_parser (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhao liwei authored May 21, 2020
1 parent c586820 commit a769521
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/tools/common/dsn_message_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ message_ex *dsn_message_parser::get_message_on_receive(message_reader *reader,
header->rpc_name,
header->from_address.to_string());
read_next = -1;
delete msg;
return nullptr;
} else {
reader->_buffer = buf.range(msg_sz);
Expand Down

0 comments on commit a769521

Please sign in to comment.