]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/flowvar: Fix memory leaks from pcre_get_substring
authorJeff Lucovsky <jeff@lucovsky.org>
Sat, 22 Feb 2020 18:23:04 +0000 (13:23 -0500)
committerVictor Julien <victor@inliniac.net>
Mon, 24 Feb 2020 10:05:46 +0000 (11:05 +0100)
commit9fe51a8bd280c3662d5b48bbd9c8745a7bdd0822
tree2e0f1360aaa7d323ecde1f259a6297a256789f67
parentc2071e1c4e2d2ff89f7f7e07cefb307c095338e3
detect/flowvar: Fix memory leaks from pcre_get_substring

This commit replaces usages of pcre_get_substring with
pcre_copy_substring to avoid leaking memory on error conditions.
src/detect-flowvar.c