Skip to content

Commit

Permalink
netloc_ib_extract_dats.c: closedir() the right dir on error
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed May 24, 2023
1 parent 8121c81 commit b2238c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/netloc/infiniband/netloc_ib_extract_dats.c
Expand Up @@ -512,7 +512,7 @@ int main(int argc, char **argv)
if (!outdir) {
fprintf(stderr, "Couldn't open output directory: \"%s\"\n", outpath);
perror("opendir");
closedir(outdir);
closedir(indir);
return 2;
}

Expand Down

0 comments on commit b2238c8

Please sign in to comment.