]> git.ipfire.org Git - thirdparty/suricata.git/commit
output/json: Eliminate dangling XFF reference 6727/head
authorJeff Lucovsky <jeff@lucovsky.org>
Sun, 19 Dec 2021 18:08:59 +0000 (13:08 -0500)
committerVictor Julien <vjulien@oisf.net>
Sun, 19 Dec 2021 18:15:34 +0000 (19:15 +0100)
commit0fbffb3b74d6cbbc2062bb5a181279762d276ad6
treeff93d7592a3decc24c6e76cfcf8e6692b69f9e3e
parent31cd7401cb1e7e7fd6671b4b21bf837f370006b2
output/json: Eliminate dangling XFF reference

This commit eliminates a dangling reference caused by the use of
json_object_set. This function adds a reference to the final parameter
-- in this case the object returned by json_string() whereas
json_object_set_new doesn't add the additional reference to the
final parameter.
src/output-json-alert.c
src/output-json-file.c
src/output-json-http.c