mirror of https://github.com/OISF/suricata
detect/port: fix use-after-free in case of alloc failure
If recursive call to DetectPortInsert (in case DetectPortCut returned a c != NULL) failed, we had successfullt inserted `new` but we return error, leading to freeing DetectPort `new` in DetectPortParseInsertString but it will be freed again by DetectPortCleanupList from DetectPortParse Ticket: 6187pull/14618/head
parent
fcec08a178
commit
374c191268
Loading…
Reference in New Issue