linux/libspl: getextmntent(): don't leak mnttab FILE*

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11868
This commit is contained in:
наб 2021-04-09 00:42:03 +02:00 committed by Brian Behlendorf
parent ecd6ad66b0
commit 4a30a0b947
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf)
break; break;
} }
} }
(void) fclose(fp);
if (!match) { if (!match) {
(void) fprintf(stderr, "cannot find mountpoint for '%s'\n", (void) fprintf(stderr, "cannot find mountpoint for '%s'\n",