ftp/expectation: fix ippair leak

Ticket: 5204

ippair use_cnt increased by AppLayerExpectationCreate calling
IPPairGetIPPairFromHash was never decreased
pull/15974/head
Philippe Antoine 3 months ago committed by Victor Julien
parent dee0f03db4
commit 425b9c6777

@ -186,6 +186,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