diff --git a/ccze-color.c b/ccze-color.c index a0e585c..43a415d 100644 --- a/ccze-color.c +++ b/ccze-color.c @@ -456,7 +456,8 @@ ccze_color_load (const char *fn) size_t len; struct stat stb;  - stat (fn, &stb); + if (stat (fn, &stb)) + return; if (!S_ISREG (stb.st_mode)) return;  diff --git a/mod_procmail.c b/mod_procmail.c index a07e62a..b1c67fa 100644 --- a/mod_procmail.c +++ b/mod_procmail.c @@ -62,6 +62,8 @@ ccze_procmail_process (const char *str, int *offsets, int match)  if (!handled) { + free (space1); + free (space2); free (header); free (value); free (extra); @@ -85,6 +87,8 @@ ccze_procmail_process (const char *str, int *offsets, int match) ccze_addstr (col, extra); ccze_newline();  + free (space1); + free (space2); free (extra); free (header); free (value); diff --git a/mod_ulogd.c b/mod_ulogd.c index e9be0b4..91c1dc8 100644 --- a/mod_ulogd.c +++ b/mod_ulogd.c @@ -55,6 +55,7 @@ ccze_ulogd_process (const char *msg) ccze_addstr (CCZE_COLOR_FIELD, word); ccze_space (); } + free(word); } while ((word = xstrdup (ccze_strbrk (NULL, ' '))) != NULL); free (msg2);