From 2e01dc8d88e6c087eb117991449aca88f7c93f5c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 19 Oct 2012 19:53:13 +0200 Subject: [PATCH] vio: Fix a possible resource leak in csync_vio_local_open(). Found by Coverity. --- src/vio/csync_vio_local.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vio/csync_vio_local.c b/src/vio/csync_vio_local.c index e4dd4e995..b7c16a820 100644 --- a/src/vio/csync_vio_local.c +++ b/src/vio/csync_vio_local.c @@ -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; }