Skip to content

Commit 4a30a0b

Browse files
nabijaczlewelibehlendorf
authored andcommitted
linux/libspl: getextmntent(): don't leak mnttab FILE*
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #11868
1 parent ecd6ad6 commit 4a30a0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/libspl/os/linux/getmntany.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf)
148148
break;
149149
}
150150
}
151+
(void) fclose(fp);
151152

152153
if (!match) {
153154
(void) fprintf(stderr, "cannot find mountpoint for '%s'\n",

0 commit comments

Comments
 (0)