diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-06 14:17:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-06 14:17:28 +0100 |
commit | 5914c4fd04c2c35041d530625784a2f86675fa6b (patch) | |
tree | 809df56cb9ee5c26c1a1ab7a9f6c0fa922ddbcc1 | |
parent | 24a938191c782716712d2e68dc304b60968af71e (diff) | |
download | rspamd-5914c4fd04c2c35041d530625784a2f86675fa6b.tar.gz rspamd-5914c4fd04c2c35041d530625784a2f86675fa6b.zip |
[Minor] Fix use-after-free
-rw-r--r-- | src/libutil/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 1ad4c6945..889cc1c6c 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -2143,7 +2143,6 @@ rspamd_deinit_libs (struct rspamd_external_libs_ctx *ctx) } g_free (ctx->ottery_cfg); - g_slice_free1 (sizeof (*ctx), ctx); g_mime_shutdown (); #ifdef HAVE_OPENSSL @@ -2152,6 +2151,7 @@ rspamd_deinit_libs (struct rspamd_external_libs_ctx *ctx) SSL_CTX_free (ctx->ssl_ctx); #endif rspamd_inet_library_destroy (); + g_slice_free1 (sizeof (*ctx), ctx); } } |