[Pkg-owncloud-commits] [owncloud-client] 30/70: stateDB: Close the file descriptor even if stat failed.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Jul 1 10:21:20 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 85cdbd1f1def0608f69f00835071a61f59b2b451
Author: Klaas Freitag <freitag at owncloud.com>
Date: Fri Jun 20 11:02:29 2014 +0200
stateDB: Close the file descriptor even if stat failed.
This fixes Coverity CID 12897
---
csync/src/csync_statedb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/csync/src/csync_statedb.c b/csync/src/csync_statedb.c
index 0caf21c..dd2659a 100644
--- a/csync/src/csync_statedb.c
+++ b/csync/src/csync_statedb.c
@@ -155,6 +155,8 @@ static int _csync_statedb_check(const char *statedb) {
}
}
}
+ } else {
+ close(fd);
}
/* if it comes here, the database is broken and should be recreated. */
_tunlink(wstatedb);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list