Sfoglia il codice sorgente

[Minor] Fix crash

tags/2.6
Vsevolod Stakhov 3 anni fa
parent
commit
5dd1c05bcd
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/libutil/shingles.c

+ 2
- 2
src/libutil/shingles.c Vedi File

@@ -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…
Annulla
Salva