Displaying 1 result from an estimated 1 matches for "start_dummy_portmap".
2011 Jun 10
0
[PATCH] nfsmount: free rem_name on errors
...@@ -221,6 +222,7 @@ int nfsmount_main(int argc, char *argv[])
if (*rem_path != '/') {
fprintf(stderr, "%s: need a path\n", progname);
+ free(rem_name);
return 1;
}
@@ -239,8 +241,10 @@ int nfsmount_main(int argc, char *argv[])
if (portmap_file)
spoof_portmap = start_dummy_portmap(portmap_file);
- if (spoof_portmap == -1)
+ if (spoof_portmap == -1) {
+ free(rem_name);
return 1;
+ }
#endif
ret = 0;
--
1.7.5.3