From: Vsevolod Stakhov Date: Mon, 28 Sep 2020 09:29:48 +0000 (+0100) Subject: [Minor] Fix crash X-Git-Tag: 2.6~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5dd1c05bcd1141456a9e48d24ceec4b3cde0f276;p=thirdparty%2Frspamd.git [Minor] Fix crash --- diff --git a/src/libutil/shingles.c b/src/libutil/shingles.c index 8816e6e3f0..8765a3d348 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); }