Browse Source

[Minor] Fix crash

pull/3493/head
Vsevolod Stakhov 5 years ago
parent
commit
5dd1c05bcd
  1. 4
      src/libutil/shingles.c

4
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);
}

Loading…
Cancel
Save