From: Victor Julien Date: Mon, 23 Jan 2023 08:13:44 +0000 (+0100) Subject: files: remove filecontainer drop trait X-Git-Tag: suricata-7.0.0-rc1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1a221066f9867dadbdd2cba21a0738e0a4f07c2;p=thirdparty%2Fsuricata.git files: remove filecontainer drop trait In preparation of it becoming impossible to use due to the free function getting an cfg argument. --- diff --git a/rust/src/filecontainer.rs b/rust/src/filecontainer.rs index 7ea3221a2f..96b0f6b92c 100644 --- a/rust/src/filecontainer.rs +++ b/rust/src/filecontainer.rs @@ -54,12 +54,6 @@ pub struct FileContainer { tail: * mut c_void, } -impl Drop for FileContainer { - fn drop(&mut self) { - self.free(); - } -} - impl Default for FileContainer { fn default() -> Self { Self { head: ptr::null_mut(),