vio: Fix a possible resource leak in csync_vio_local_open().

Found by Coverity.
This commit is contained in:
Andreas Schneider 2012-10-19 19:53:13 +02:00
parent 4010096cdf
commit 2e01dc8d88

View file

@ -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;
}