summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-11-15 19:56:31 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-11-15 19:56:31 +0200
commit4daf0d8d7f578fa3987ad62c1d3e134c9f4334d0 (patch)
treed9d88dffddcb88e8c660cfdef62fc6d9f7f5142c
parentf28a2a80108eaff5bea81da97912e303193577ce (diff)
STL push remote empty/incorrect pcap: fix cleanup
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rw-r--r--src/stateless/dp/trex_stateless_dp_core.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stateless/dp/trex_stateless_dp_core.cpp b/src/stateless/dp/trex_stateless_dp_core.cpp
index 857ac8f9..485e8533 100644
--- a/src/stateless/dp/trex_stateless_dp_core.cpp
+++ b/src/stateless/dp/trex_stateless_dp_core.cpp
@@ -1304,9 +1304,7 @@ bool CGenNodePCAP::create(uint8_t port_id,
m_raw_packet = new CCapPktRaw();
if ( m_reader->ReadPacket(m_raw_packet) == false ){
- /* handle error */
- delete m_reader;
- return (false);
+ return false;
}
/* set the dir */