aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/shingles.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/shingles.c b/src/libutil/shingles.c
index 4affb16c3..8816e6e3f 100644
--- a/src/libutil/shingles.c
+++ b/src/libutil/shingles.c
@@ -188,6 +188,8 @@ rspamd_shingles_from_text (GArray *input,
g_free (res);
}
+ rspamd_fstring_free (row);
+
return NULL;
}
@@ -256,7 +258,12 @@ rspamd_shingles_from_text (GArray *input,
g_free (hashes[i]);
}
+ if (pool != NULL) {
+ g_free (res);
+ }
+
g_free (hashes);
+ rspamd_fstring_free (row);
return NULL;
}