]> git.ipfire.org Git - thirdparty/suricata.git/commit
stream: fix memory leak when failing to insert segment
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 6 Jan 2023 16:49:22 +0000 (17:49 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 10 Jan 2023 10:12:00 +0000 (11:12 +0100)
commitfff4475d912d32d2fa0ab1d114d54ddf5273586e
tree590f7faee59215feb69776235d978a7e5148f452
parente15c9451f2a8cf01577bda53ef7ab5b41b73951b
stream: fix memory leak when failing to insert segment

As introduced by commit f848e34bcc266a2a4d8f5fc2661d2b430449b190

DoInsertSegment can now return `-EINVAL` and there was no
generic handling of error values to return the tcp segment
to its pool.

Ticket: #5777
src/stream-tcp-list.c