From 5914c4fd04c2c35041d530625784a2f86675fa6b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 6 Sep 2016 14:17:28 +0100 Subject: [PATCH] [Minor] Fix use-after-free --- src/libutil/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.5