mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
vio: Fix a possible resource leak in csync_vio_local_open().
Found by Coverity.
This commit is contained in:
parent
4010096cdf
commit
2e01dc8d88
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ csync_vio_method_handle_t *csync_vio_local_open(const char *durl, int flags, mod
|
|||
|
||||
handle = c_malloc(sizeof(fhandle_t));
|
||||
if (handle == NULL) {
|
||||
close(fd);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue