Message ID | 20151015210600.22046.77328.stgit@dwillia2-desk3.jf.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | eb125ae77788 |
Headers | show |
diff --git a/lib/test-libndctl.c b/lib/test-libndctl.c index 616b0beec878..e2c72e3c3c25 100644 --- a/lib/test-libndctl.c +++ b/lib/test-libndctl.c @@ -717,6 +717,7 @@ static int check_btt_autodetect(struct ndctl_bus *bus, rc = -ENXIO; goto out; } + close(fd); rc = -ENXIO; if (ro != namespace->ro) {
Static analysis points out that we leak the open we did to issue the blockdev ioctl. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- lib/test-libndctl.c | 1 + 1 file changed, 1 insertion(+)