]> git.ipfire.org Git - thirdparty/suricata.git/commit
flow: cleanup expectations first 4881/head
authorVictor Julien <victor@inliniac.net>
Fri, 3 Apr 2020 08:09:07 +0000 (10:09 +0200)
committerShivani Bhardwaj <shivanib134@gmail.com>
Sat, 25 Apr 2020 19:59:22 +0000 (01:29 +0530)
commit4f1980d048f1b0dd0e710503c9a7709d962af55c
treea9ad98ca7800e99742cbc8d678183a4c3b990439
parent9019520e5bc0322bfcb09d68ac9d4e32cc85abe0
flow: cleanup expectations first

Make sure to cleanup expectations for a flow as the first step, before
parts of the flow itself are getting cleaned/freed.

Also indicate use unlikely as flows with expectations should be relatively
rare.

(cherry picked from commit 09a21545ce00de8ef161f097603f98770351e9be)
src/flow.c