diff options
author | Anthony Youngman <anthony@youngman.org.uk> | 2018-06-15 23:36:42 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2018-07-11 19:11:17 +0200 |
commit | d94eb07f82a7e9c086da23b31c8021107b60f884 (patch) | |
tree | 18f8a6c6b5ca3bfcc5642f569502cf872573b172 | |
parent | Coverity: Resource leak: close fds and free array before return (diff) | |
download | mdadm-d94eb07f82a7e9c086da23b31c8021107b60f884.tar.xz mdadm-d94eb07f82a7e9c086da23b31c8021107b60f884.zip |
Coverity: Resource leak: close fd before return
Anthony Youngman <anthony@youngman.org.uk>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r-- | Grow.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -242,6 +242,7 @@ int Grow_Add_device(char *devname, int fd, char *newdev) if (st->ss->load_super(st, fd2, NULL)) { pr_err("cannot find super block on %s\n", dv); close(fd); + close(fd2); return 1; } info.array.raid_disks = nd+1; |