mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Exclude: Add a missing free in case of empty lines.
This fixes Coverity CLT 12893
This commit is contained in:
parent
9ca82ba14d
commit
041066a252
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue