diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-28 10:29:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-28 10:29:48 +0100 |
commit | 5dd1c05bcd1141456a9e48d24ceec4b3cde0f276 (patch) | |
tree | d6eb3ecbc5691e892a105e6eb98b939ab4bcfd7f | |
parent | 1c3e0910b3da049dd95b3083b88469b56d83f439 (diff) | |
download | rspamd-5dd1c05bcd1141456a9e48d24ceec4b3cde0f276.tar.gz rspamd-5dd1c05bcd1141456a9e48d24ceec4b3cde0f276.zip |
[Minor] Fix crash
-rw-r--r-- | src/libutil/shingles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/shingles.c b/src/libutil/shingles.c index 8816e6e3f..8765a3d34 100644 --- a/src/libutil/shingles.c +++ b/src/libutil/shingles.c @@ -184,7 +184,7 @@ rspamd_shingles_from_text (GArray *input, g_free (hashes); - if (pool != NULL) { + if (pool == NULL) { g_free (res); } @@ -258,7 +258,7 @@ rspamd_shingles_from_text (GArray *input, g_free (hashes[i]); } - if (pool != NULL) { + if (pool == NULL) { g_free (res); } |