mirror of https://github.com/OISF/suricata
detect/flowbits: check SCRealloc result before overwriting pointer
The original pointer was overwritten with the SCRealloc result before checking for NULL, causing a memory leak if reallocation fails. Check the temporary pointer first before assigning.pull/15601/head
parent
21bcbe14c1
commit
01f64ea335
Loading…
Reference in New Issue