ref: c7522489a3792242babd49980296ea21741d4426
parent: f2f19dd888da68f3513f43d493dfc98ca18209ce
author: cinap_lenrek <[email protected]>
date: Tue Feb 7 23:14:32 EST 2012
rc: remove silly efree check
--- a/sys/src/cmd/rc/havefork.c
+++ b/sys/src/cmd/rc/havefork.c
@@ -129,8 +129,7 @@
*s='\0';
v = newword(wd, v);
}
- if(wd)
- efree(wd);
+ free(wd);
closeio(f);
Waitfor(pid, 0);
/* v points to reversed arglist -- reverse it onto argv */
@@ -230,4 +229,4 @@
}
addwaitpid(pid);
return pid;
-}
\ No newline at end of file
+}
--- a/sys/src/cmd/rc/haventfork.c
+++ b/sys/src/cmd/rc/haventfork.c
@@ -108,8 +108,7 @@
*s='\0';
v=newword(wd, v);
}
- if(wd)
- efree(wd);
+ free(wd);
closeio(f);
Waitfor(pid, 1);
/* v points to reversed arglist -- reverse it onto argv */