diff options
| author | Steve Dickson <steved@redhat.com> | 2019-04-26 10:47:17 -0400 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2019-04-26 10:47:17 -0400 |
| commit | ac9c1ac3383182208b3788c3462f6f6063323354 (patch) | |
| tree | 0802d9c63dfdca419eecb485123a9f0dda8f648f | |
| parent | ef03d5d37522851f824b891e0726f2c3b9974d8f (diff) | |
| download | nfs-utils-ac9c1ac3383182208b3788c3462f6f6063323354.tar.gz | |
Removed a resource leak from mount/nfsmount.c
mount/nfsmount.c:455: leaked_storage: Variable "mounthost" going
out of scope leaks the storage it points to.
Signed-off-by: Steve Dickson <steved@redhat.com>
| -rw-r--r-- | utils/mount/nfsmount.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
