mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-12 19:20:28 +03:00
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:
parent
b3530c4262
commit
74e48f470e
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user