25 lines
656 B
Diff
25 lines
656 B
Diff
|
|
From c8a963eee8eeb7bd8aeec850121cb015f64d52ab Mon Sep 17 00:00:00 2001
|
||
|
|
From: huyan <hu.huyan@huawei.com>
|
||
|
|
Date: Mon, 17 Jun 2019 15:54:11 +0800
|
||
|
|
Subject: [PATCH] backport remove a resource leak from mount/nfsmount.c
|
||
|
|
|
||
|
|
---
|
||
|
|
utils/mount/nfsmount.c | 1 +
|
||
|
|
1 file changed, 1 insertion(+)
|
||
|
|
|
||
|
|
diff --git a/utils/mount/nfsmount.c b/utils/mount/nfsmount.c
|
||
|
|
index 952a755..3d95da9 100644
|
||
|
|
--- a/utils/mount/nfsmount.c
|
||
|
|
+++ b/utils/mount/nfsmount.c
|
||
|
|
@@ -452,6 +452,7 @@ parse_options(char *old_opts, struct nfs_mount_data *data,
|
||
|
|
nfs_error(_("%s: Bad nfs mount parameter: %s\n"), progname, opt);
|
||
|
|
out_bad:
|
||
|
|
free(tmp_opts);
|
||
|
|
+ free(mounthost);
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
--
|
||
|
|
1.8.3.1
|
||
|
|
|