diff options
author | наб <[email protected]> | 2021-04-09 00:42:03 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-04-14 13:23:08 -0700 |
commit | 4a30a0b94750aa8bfd09c5bd03f2970055b19968 (patch) | |
tree | 17a39923e0c5c8e771ed55bbc5418ca74a5d4278 /lib/libspl/os | |
parent | ecd6ad66b0b83f6cf678193bb0a1e6313d9bb24d (diff) |
linux/libspl: getextmntent(): don't leak mnttab FILE*
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #11868
Diffstat (limited to 'lib/libspl/os')
-rw-r--r-- | lib/libspl/os/linux/getmntany.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libspl/os/linux/getmntany.c b/lib/libspl/os/linux/getmntany.c index c7201363f..a27db60ec 100644 --- a/lib/libspl/os/linux/getmntany.c +++ b/lib/libspl/os/linux/getmntany.c @@ -148,6 +148,7 @@ getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf) break; } } + (void) fclose(fp); if (!match) { (void) fprintf(stderr, "cannot find mountpoint for '%s'\n", |