diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-17 21:47:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-17 21:47:17 +0100 |
commit | 52041f014b47aa9f67bbaecda08a0fb18673cb93 (patch) | |
tree | 066af05b01d42e2e851dd88b7b9ddc198e3f8c8e /src | |
parent | 0832f067cbba7812e166f857326c8f83d220692a (diff) | |
download | rspamd-52041f014b47aa9f67bbaecda08a0fb18673cb93.tar.gz rspamd-52041f014b47aa9f67bbaecda08a0fb18673cb93.zip |
[Minor] Fix some double frees
Found by: coverity scan
Diffstat (limited to 'src')
-rw-r--r-- | src/libmime/archives.c | 2 | ||||
-rw-r--r-- | src/libserver/dns.c | 1 | ||||
-rw-r--r-- | src/libutil/rrd.c | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/libmime/archives.c b/src/libmime/archives.c index 4d7867f67..1101213d1 100644 --- a/src/libmime/archives.c +++ b/src/libmime/archives.c @@ -254,6 +254,8 @@ rspamd_archive_process_zip (struct rspamd_task *task, } else { g_free (f); + + return; } /* Process extra fields */ diff --git a/src/libserver/dns.c b/src/libserver/dns.c index c23390a47..0eff240a6 100644 --- a/src/libserver/dns.c +++ b/src/libserver/dns.c @@ -652,6 +652,7 @@ rspamd_process_fake_reply (struct rspamd_config *cfg, else { DL_APPEND (replies, rep); } + break; case RDNS_REQUEST_SRV: default: msg_err_config ("invalid or unsupported reply element " diff --git a/src/libutil/rrd.c b/src/libutil/rrd.c index a270d87c6..09e488f9a 100644 --- a/src/libutil/rrd.c +++ b/src/libutil/rrd.c @@ -747,7 +747,7 @@ rspamd_rrd_finalize (struct rspamd_rrd_file *file, GError **err) close (fd); g_set_error (err, rrd_error_quark (), ENOMEM, "mmap failed: %s", strerror (errno)); - g_free (file); + return FALSE; } |