Skip to content

Commit b2238c8

Browse files
committed
netloc_ib_extract_dats.c: closedir() the right dir on error
Signed-off-by: Brice Goglin <[email protected]>
1 parent 8121c81 commit b2238c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/netloc/infiniband/netloc_ib_extract_dats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ int main(int argc, char **argv)
512512
if (!outdir) {
513513
fprintf(stderr, "Couldn't open output directory: \"%s\"\n", outpath);
514514
perror("opendir");
515-
closedir(outdir);
515+
closedir(indir);
516516
return 2;
517517
}
518518

0 commit comments

Comments
 (0)