diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-12 15:22:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-12 15:22:46 +0000 |
commit | fbbb95745bd7669ae7760b53b4bbbd3329401db1 (patch) | |
tree | b8d2b401756f902f1910d5c1035ecff7ef7980ed /src/libutil/util.c | |
parent | 56fdb79c495ab76cbde7cc7b12d3751b662fb9c4 (diff) | |
download | rspamd-fbbb95745bd7669ae7760b53b4bbbd3329401db1.tar.gz rspamd-fbbb95745bd7669ae7760b53b4bbbd3329401db1.zip |
Add library deinit interface
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 1a70f1b6f..d347a3829 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1958,6 +1958,18 @@ rspamd_init_libs (void) return ctx; } +void +rspamd_deinit_libs (struct rspamd_external_libs_ctx *ctx) +{ + if (ctx != NULL) { + if (ctx->libmagic) { + magic_close (ctx->libmagic); + } + + g_slice_free1 (sizeof (*ctx), ctx); + } +} + guint64 rspamd_hash_seed (void) { |