fix save addon memory leak
introduced by copying the also-broken `request()` implementation.
7004d694b7
will fix it there next week.
This commit is contained in:
parent
976b1a5f27
commit
7b84848be2
|
@ -138,8 +138,7 @@ class Save:
|
|||
self.active_flows.add(flow)
|
||||
|
||||
def tcp_end(self, flow: tcp.TCPFlow):
|
||||
if self.stream:
|
||||
self.save_flow(flow)
|
||||
self.save_flow(flow)
|
||||
|
||||
def tcp_error(self, flow: tcp.TCPFlow):
|
||||
self.tcp_end(flow)
|
||||
|
@ -160,7 +159,8 @@ class Save:
|
|||
self.response(flow)
|
||||
|
||||
def dns_request(self, flow: dns.DNSFlow):
|
||||
self.active_flows.add(flow)
|
||||
if self.stream:
|
||||
self.active_flows.add(flow)
|
||||
|
||||
def dns_response(self, flow: dns.DNSFlow):
|
||||
self.save_flow(flow)
|
||||
|
|
Loading…
Reference in New Issue