Exclude: Add a missing free in case of empty lines.

This fixes Coverity CLT 12893
This commit is contained in:
Klaas Freitag 2014-06-20 15:14:44 +02:00
parent 9ca82ba14d
commit 041066a252

View file

@ -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 */