Explorar el Código

[Minor] Fix cleanup

tags/1.9.0
Vsevolod Stakhov hace 5 años
padre
commit
ceaafac997
Se han modificado 5 ficheros con 12 adiciones y 4 borrados
  1. 1
    1
      src/controller.c
  2. 1
    1
      src/fuzzy_storage.c
  3. 8
    0
      src/libutil/http_context.c
  4. 1
    1
      src/rspamd_proxy.c
  5. 1
    1
      src/worker.c

+ 1
- 1
src/controller.c Ver fichero

@@ -3942,8 +3942,8 @@ start_controller_worker (struct rspamd_worker *worker)

g_hash_table_unref (ctx->plugins);
g_hash_table_unref (ctx->custom_commands);
rspamd_http_context_free (ctx->http_ctx);
REF_RELEASE (ctx->cfg);
rspamd_http_context_free (ctx->http_ctx);
rspamd_log_close (worker->srv->logger, TRUE);

exit (EXIT_SUCCESS);

+ 1
- 1
src/fuzzy_storage.c Ver fichero

@@ -3235,8 +3235,8 @@ start_fuzzy (struct rspamd_worker *worker)
rspamd_keypair_cache_destroy (ctx->keypair_cache);
}

rspamd_http_context_free (ctx->http_ctx);
REF_RELEASE (ctx->cfg);
rspamd_http_context_free (ctx->http_ctx);
rspamd_log_close (worker->srv->logger, TRUE);

exit (EXIT_SUCCESS);

+ 8
- 0
src/libutil/http_context.c Ver fichero

@@ -176,6 +176,14 @@ rspamd_http_context_free (struct rspamd_http_context *ctx)
rspamd_keypair_cache_destroy (ctx->server_kp_cache);
}

if (ctx->config.client_key_rotate_time > 0) {
event_del (&ctx->client_rotate_ev);

if (ctx->client_kp) {
rspamd_keypair_unref (ctx->client_kp);
}
}

g_free (ctx);
}


+ 1
- 1
src/rspamd_proxy.c Ver fichero

@@ -2213,8 +2213,8 @@ start_rspamd_proxy (struct rspamd_worker *worker)
rspamd_stat_close ();
}

rspamd_http_context_free (ctx->http_ctx);
REF_RELEASE (ctx->cfg);
rspamd_http_context_free (ctx->http_ctx);
rspamd_log_close (worker->srv->logger, TRUE);

exit (EXIT_SUCCESS);

+ 1
- 1
src/worker.c Ver fichero

@@ -703,8 +703,8 @@ start_worker (struct rspamd_worker *worker)
rspamd_worker_block_signals ();

rspamd_stat_close ();
rspamd_http_context_free (ctx->http_ctx);
REF_RELEASE (ctx->cfg);
rspamd_http_context_free (ctx->http_ctx);
rspamd_log_close (worker->srv->logger, TRUE);

exit (EXIT_SUCCESS);

Cargando…
Cancelar
Guardar