]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4383: file: removing unused variable in FileFlows destructor
authorAshik Thomas (ashiktho) <ashiktho@cisco.com>
Tue, 6 Aug 2024 09:38:32 +0000 (09:38 +0000)
committerBhargava Jandhyala (bjandhya) <bjandhya@cisco.com>
Tue, 6 Aug 2024 09:38:32 +0000 (09:38 +0000)
Merge in SNORT/snort3 from ~ASHIKTHO/snort3:CSCwj63921_tot_2 to master

Squashed commit of the following:

commit 57316a4dcf33c789cd0cf5161b1bba98bb3e0c5a
Author: Ashik Thomas <ashiktho@cisco.com>
Date:   Tue Jul 9 09:42:52 2024 +0530

    file: remove unused variable in FileFlows destructor

src/file_api/file_flows.cc

index ac867bf3354e62548943159f51b13a9c30ed6cb9..ccf4b64157ca4f763dc52f71e1fbfeb680b25ee4 100644 (file)
@@ -207,9 +207,6 @@ uint64_t FileFlows::get_new_file_instance()
 
 FileFlows::~FileFlows()
 {
-    FileCache* file_cache = FileService::get_file_cache();
-    assert(file_cache);
-
     delete(main_context);
     if (current_context_delete_pending)
         delete(current_context);