]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
output: SQLITE3: fix memory-leak in error-handling
authorJeremy Sowden <jeremy@azazel.net>
Tue, 30 Nov 2021 10:55:47 +0000 (10:55 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 Dec 2021 21:35:32 +0000 (22:35 +0100)
commit03abc9c6502199aa3e096663276f23d09d24e48d
tree61c795e4a0360694c91fce6f95e2c4d663cd597b
parent03e67f2e3a3e87fbbe286d5a67085015e6007329
output: SQLITE3: fix memory-leak in error-handling

When mapping DB column names to input-keys, if we cannot find a key to
match a column, the newly allocated `struct field` is leaked.  Free it,
and log an error message.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
output/sqlite3/ulogd_output_SQLITE3.c