Squashed commit of the following:
commit
ac638bb058bbb634528feb5d666a46e85d53efdb
Author: Silviu Minut <sminut@cisco.com>
Date: Fri Feb 28 16:05:33 2020 -0500
flow: free the flow data before deleting the actual flow
delete session;
session = nullptr;
- assert(!flow_data);
+ if ( flow_data )
+ free_flow_data();
if ( mpls_client.length )
delete[] mpls_client.start;
if (assistant_gadget)
assistant_gadget->rem_ref();
+ if ( data )
+ clear_data();
+
if ( ha_state )
delete ha_state;
void Flow::init(PktType) { }
void Flow::term() { }
void Flow::reset(bool) { }
+void Flow::free_flow_data() { }
void set_network_policy(SnortConfig*, unsigned) { }
void DataBus::publish(const char*, const uint8_t*, unsigned, Flow*) { }
void DataBus::publish(const char*, Packet*, Flow*) { }