]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/json: Rework scope for short-lived vars 5733/head
authorJeff Lucovsky <jeff@lucovsky.org>
Sat, 16 Jan 2021 14:34:20 +0000 (09:34 -0500)
committerVictor Julien <victor@inliniac.net>
Sat, 16 Jan 2021 17:00:49 +0000 (18:00 +0100)
commit8519a9af338a1ecdcdfd8b43979511960a7489e0
treea2280176d2646675b0db86ecf31e0d06dbdd28a2
parentf50ac5d7c8ba13c07bc9ca764afb1a0668476ca3
rust/json: Rework scope for short-lived vars

This commit corrects scope issues identified during CI with
FC32/strict-rust:
"this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
"
rust/src/json.rs