From 041066a252e0cd5f9bcebacf0254b7b492a07955 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Fri, 20 Jun 2014 15:14:44 +0200 Subject: [PATCH] Exclude: Add a missing free in case of empty lines. This fixes Coverity CLT 12893 --- csync/src/csync_exclude.c | 1 + 1 file changed, 1 insertion(+) diff --git a/csync/src/csync_exclude.c b/csync/src/csync_exclude.c index f0e9e8282..7302202a0 100644 --- a/csync/src/csync_exclude.c +++ b/csync/src/csync_exclude.c @@ -229,6 +229,7 @@ CSYNC_EXCLUDE_TYPE csync_excluded(CSYNC *ctx, const char *path, int filetype) { type = CSYNC_FILE_EXCLUDE_LIST; if (strlen(pattern) < 1) { + SAFE_FREE(pattern_stored); continue; } /* Ecludes starting with ']' means it can be cleanup */