Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 1/4] mount.nfs: mount's background daemon should free "mount_point" properly
@ 2007-08-21 16:19 Chuck Lever
  2007-08-21 22:19 ` Steinar H. Gunderson
  2007-08-24  3:11 ` Neil Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Chuck Lever @ 2007-08-21 16:19 UTC (permalink / raw)
  To: neilb; +Cc: nfs

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---

 utils/mount/mount.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/utils/mount/mount.c b/utils/mount/mount.c
index d299358..40e7958 100644
--- a/utils/mount/mount.c
+++ b/utils/mount/mount.c
@@ -557,7 +557,7 @@ int main(int argc, char *argv[])
 
 		/*
 		 * Parent exits immediately with success.  Make
-		 * sure not to free "mount_point"
+		 * sure parent doesn't free "mount_point".
 		 */
 		if (fork() > 0)
 			exit(0);
@@ -568,6 +568,7 @@ int main(int argc, char *argv[])
 		if (verbose && mnt_err)
 			printf(_("%s: giving up \"%s\"\n"),
 				progname, spec);
+		free(mount_point);
 		exit(0);
 	}
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-24  3:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-21 16:19 [PATCH 1/4] mount.nfs: mount's background daemon should free "mount_point" properly Chuck Lever
2007-08-21 22:19 ` Steinar H. Gunderson
2007-08-22  5:10   ` Chuck Lever
2007-08-24  3:11 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox