]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/filestore: Fix memory leaks from pcre_get_substring
authorJeff Lucovsky <jeff@lucovsky.org>
Sat, 22 Feb 2020 18:21:36 +0000 (13:21 -0500)
committerJeff Lucovsky <jeff@lucovsky.org>
Sun, 22 Mar 2020 15:46:10 +0000 (11:46 -0400)
commite57637eb8acb6343982fa752b1005a8e790385b8
tree7b6a16f49d7d9b38b94314e45e4ce0760fb40495
parentcd893635d7560c718b7473c9e92ba2e17085d74e
detect/filestore: 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.

(cherry picked from commit c2071e1c4e2d2ff89f7f7e07cefb307c095338e3)
src/detect-filestore.c