diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 13:10:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 13:10:17 +0100 |
commit | 62b2188d8282e5dda9a388a851cd701434f69124 (patch) | |
tree | 0cd5ebdfc511dcd2f492bc8e95f1935e6ca4d308 /src/libutil/fstring.h | |
parent | 3b9d4282aea747995442cbebcc6b4908c6b52049 (diff) | |
download | rspamd-62b2188d8282e5dda9a388a851cd701434f69124.tar.gz rspamd-62b2188d8282e5dda9a388a851cd701434f69124.zip |
Add routine to free fstring mapped ftoks.
Diffstat (limited to 'src/libutil/fstring.h')
-rw-r--r-- | src/libutil/fstring.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/fstring.h b/src/libutil/fstring.h index abb69dcbc..5ca74f457 100644 --- a/src/libutil/fstring.h +++ b/src/libutil/fstring.h @@ -128,4 +128,14 @@ gint rspamd_ftok_casecmp (const rspamd_ftok_t *s1, gint rspamd_ftok_cmp (const rspamd_ftok_t *s1, const rspamd_ftok_t *s2); +/** + * Free fstring_t that is mapped to ftok_t + * + * | len | allocated | <data> -- fstring_t + * <begin> -- tok + * + * tok is expected to be allocated with g_slice_alloc + */ +void rspamd_fstring_mapped_ftok_free (gpointer p); + #endif |