STL push remote empty/incorrect pcap: fix cleanup
authorYaroslav Brustinov <[email protected]>
Tue, 15 Nov 2016 17:56:31 +0000 (19:56 +0200)
committerYaroslav Brustinov <[email protected]>
Tue, 15 Nov 2016 17:56:31 +0000 (19:56 +0200)
Signed-off-by: Yaroslav Brustinov <[email protected]>
src/stateless/dp/trex_stateless_dp_core.cpp

index 857ac8f..485e853 100644 (file)
@@ -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 */