mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
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 <asn@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Feb 17 18:43:16 CET 2017 on sn-devel-144
This commit is contained in:
parent
2458752fd0
commit
8ebe9f8551
@ -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;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user