ftp/expectation: fix ippair leak

Ticket: 5204

ippair use_cnt increased by AppLayerExpectationCreate calling
IPPairGetIPPairFromHash was never decreased

(cherry picked from commit 425b9c6777)
pull/16113/head
Philippe Antoine 1 month ago committed by Victor Julien
parent df5c638251
commit 7b84fbc932

@ -188,6 +188,7 @@ static ExpectationList *AppLayerExpectationRemove(IPPair *ipp,
{
CIRCLEQ_REMOVE(&exp_list->list, exp, entries);
AppLayerFreeExpectation(exp);
IPPairDecrUsecnt(ipp);
SC_ATOMIC_SUB(expectation_count, 1);
exp_list->length--;
if (exp_list->length == 0) {

Loading…
Cancel
Save