mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-11 10:14:59 +03:00
Avoid double free
This commit is contained in:
parent
eb38f5beb1
commit
844c2bbafa
1 changed files with 2 additions and 0 deletions
|
@ -734,6 +734,8 @@ static int _csync_rename_file(CSYNC *ctx, csync_file_stat_t *st) {
|
|||
if (pi && pi->error > 3) {
|
||||
if (!st->error_string && pi->error_string)
|
||||
st->error_string = c_strdup(pi->error_string);
|
||||
if (!other->error_string && pi->error_string)
|
||||
other->error_string = c_strdup(pi->error_string);
|
||||
rc = 1;
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue