diff options
author | imarom <imarom@cisco.com> | 2016-12-01 15:24:58 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-12-01 15:30:29 +0200 |
commit | 452e9d470b09513fff00b4a0c3600c33c3e4f76a (patch) | |
tree | 90d100a4d84de5b1009a277fa29857d2c697acc4 /src/rpc-server/commands | |
parent | c420d1fd8c17118f2ccaee4b05b81ec3dd515fa6 (diff) |
bug found by valgrind
also an issue with 40G deleting no exisiting rules with recv_all
Signed-off-by: imarom <imarom@cisco.com>
Diffstat (limited to 'src/rpc-server/commands')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_general.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_general.cpp b/src/rpc-server/commands/trex_rpc_cmd_general.cpp index 107b7b4b..3d541fe5 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_general.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_general.cpp @@ -820,6 +820,8 @@ TrexRpcCmdGetRxQueuePkts::_run(const Json::Value ¶ms, Json::Value &result) { const RXPacketBuffer *pkt_buffer = port->get_rx_queue_pkts(); if (pkt_buffer) { result["result"]["pkts"] = pkt_buffer->to_json(); + delete pkt_buffer; + } else { result["result"]["pkts"] = Json::arrayValue; } |