summaryrefslogtreecommitdiff
path: root/do/execfree
diff options
context:
space:
mode:
Diffstat (limited to 'do/execfree')
-rw-r--r--do/execfree13
1 files changed, 13 insertions, 0 deletions
diff --git a/do/execfree b/do/execfree
new file mode 100644
index 0000000000..3f5bd394e1
--- /dev/null
+++ b/do/execfree
@@ -0,0 +1,13 @@
+void
+do_execfree()
+{
+ if (Argv) {
+ Safefree(Argv);
+ Argv = Null(char **);
+ }
+ if (Cmd) {
+ Safefree(Cmd);
+ Cmd = Nullch;
+ }
+}
+