The branch, master has been updated via 8ebe9f8 ctdb: Do not leak fd handle in control_restoredb() from 2458752 ctdb-daemon: Use sock_clean() to remove stale sockets
https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 8ebe9f8551ad6fa9cbc49b283360e608e381656a Author: Andreas Schneider <a...@samba.org> Date: Thu Feb 16 16:55:35 2017 +0100 ctdb: Do not leak fd handle in control_restoredb() Found by covscan. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12592 Signed-off-by: Andreas Schneider <a...@samba.org> Reviewed-by: David Disseldorp <dd...@samba.org> Autobuild-User(master): Andreas Schneider <a...@cryptomilk.org> Autobuild-Date(master): Fri Feb 17 18:43:16 CET 2017 on sn-devel-144 ----------------------------------------------------------------------- Summary of changes: ctdb/tools/ctdb.c | 1 + 1 file changed, 1 insertion(+) Changeset truncated at 500 lines: diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index 050906c..ae74ef8 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -4403,6 +4403,7 @@ static int control_restoredb(TALLOC_CTX *mem_ctx, struct ctdb_context *ctdb, } printf("Database %s restored\n", db_name); + close(fd); return 0; -- Samba Shared Repository