commit 5dd1c05: [Minor] Fix crash
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Sep 28 09:35:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-09-28 10:29:48 +0100
URL: https://github.com/rspamd/rspamd/commit/5dd1c05bcd1141456a9e48d24ceec4b3cde0f276 (HEAD -> master)
[Minor] Fix crash
---
src/libutil/shingles.c | 4 ++--
1 file 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);
}
More information about the Commits
mailing list