mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
update: Don't leak dh on error.
Found by Coverity.
This commit is contained in:
parent
b4464bd92f
commit
47f1560d87
1 changed files with 3 additions and 0 deletions
|
@ -325,6 +325,9 @@ done:
|
|||
SAFE_FREE(filename);
|
||||
return rc;
|
||||
error:
|
||||
if (dh != NULL) {
|
||||
csync_vio_closedir(ctx, dh);
|
||||
}
|
||||
SAFE_FREE(filename);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue