From cd50e7bd57981b7b7a01eec88ae06968c625b2a7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 18 Sep 2021 15:53:20 +0100 Subject: [Minor] Fix some more issues Found by: coverity scan --- src/controller.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/controller.c') diff --git a/src/controller.c b/src/controller.c index a34bb6034..34685b92e 100644 --- a/src/controller.c +++ b/src/controller.c @@ -349,6 +349,9 @@ check_uncached: /* We have some unknown salt here */ msg_info_ctx ("incorrect key: %z, while %z expected", key_len, pbkdf->key_len); + g_free (salt_decoded); + g_free (key_decoded); /* valid even if key_decoded == NULL */ + return FALSE; } @@ -1357,6 +1360,7 @@ rspamd_controller_handle_graph ( rspamd_controller_send_ucl (conn_ent, res); ucl_object_unref (res); g_free (acc); + g_free (rrd_result); return 0; } -- cgit v1.2.3