]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http2: explicity free files
authorVictor Julien <vjulien@oisf.net>
Fri, 20 Jan 2023 17:51:04 +0000 (18:51 +0100)
committerVictor Julien <vjulien@oisf.net>
Mon, 23 Jan 2023 08:19:51 +0000 (09:19 +0100)
In preparation of adding an argument to the free functions which
means the drop trait can't be used anymore.

rust/src/http2/http2.rs

index df9a30fbf215d510aae1056c6fe1219d8a64d2af..83eb492caca616d0a60d543a7f059a562931cce2 100644 (file)
@@ -364,6 +364,8 @@ impl HTTP2Transaction {
 
 impl Drop for HTTP2Transaction {
     fn drop(&mut self) {
+        self.files.files_ts.free();
+        self.files.files_tc.free();
         self.free();
     }
 }