aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-18 16:54:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-18 16:54:29 +0100
commit453a65c386075e803ebdddd01f3145a0f221a12a (patch)
treed7a980ff5cf6d3c220fc238f605dc4c25f1e9218 /src/libutil/util.c
parenta2d8a1a2727274c97a5b5f4bc701ec1d92e7b25f (diff)
downloadrspamd-453a65c386075e803ebdddd01f3145a0f221a12a.tar.gz
rspamd-453a65c386075e803ebdddd01f3145a0f221a12a.zip
Add helper to use GString in pool destructors.
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r--src/libutil/util.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index 6efe1b477..15f73bf09 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -2386,6 +2386,14 @@ rspamd_array_free_hard (gpointer p)
g_array_free (ar, TRUE);
}
+void
+rspamd_gstring_free_hard (gpointer p)
+{
+ GString *ar = (GString *)p;
+
+ g_string_free (ar, TRUE);
+}
+
void
rspamd_init_libs (void)