diff --git a/lib/libspl/os/linux/getmntany.c b/lib/libspl/os/linux/getmntany.c index c7201363fd47..a27db60ec3cd 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",