Displaying 1 result from an estimated 1 matches for "beda723".
2011 Jun 10
0
[PATCH] nfsmount: free rem_name on errors
Missing unwrap on error path..
Signed-off-by: maximilian attems <max at stro.at>
---
usr/kinit/nfsmount/main.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/usr/kinit/nfsmount/main.c b/usr/kinit/nfsmount/main.c
index beda723..b85901a 100644
--- a/usr/kinit/nfsmount/main.c
+++ b/usr/kinit/nfsmount/main.c
@@ -214,6 +214,7 @@ int nfsmount_main(int argc, char *argv[])
if ((rem_path = strchr(rem_path, ':')) == NULL) {
fprintf(stderr, "%s: need a server\n", progname);
+ free(rem_name);
return 1;...