aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl/os
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-04-09 00:42:03 +0200
committerBrian Behlendorf <[email protected]>2021-04-13 14:14:44 -0700
commit74e48f470e8190ed64bbea020e6535f69e17c1a8 (patch)
treee9e62e50987c9c7f974c29922432f68d5ebfd262 /lib/libspl/os
parentb3530c4262275d6a6419a259b2f58c3c12664ea6 (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.c1
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",