summaryrefslogtreecommitdiff
path: root/sys/src/cmd/plumb/rules.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@rei2>2012-01-29 03:48:24 +0100
committercinap_lenrek <cinap_lenrek@rei2>2012-01-29 03:48:24 +0100
commit83b56186e46087b06b2af8d58ff293eda6be6bad (patch)
treeda99acae3014d96918494cf849dbd58e5ca351a7 /sys/src/cmd/plumb/rules.c
parent105ebc327abe965cf11242e6c300d28979938f5e (diff)
plumber: fix memory leaks
Diffstat (limited to 'sys/src/cmd/plumb/rules.c')
-rw-r--r--sys/src/cmd/plumb/rules.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/plumb/rules.c b/sys/src/cmd/plumb/rules.c
index 262f6d67f..806ba39b1 100644
--- a/sys/src/cmd/plumb/rules.c
+++ b/sys/src/cmd/plumb/rules.c
@@ -123,6 +123,7 @@ popinput(void)
Bterm(in->fd);
free(in->fd);
}
+ free(in->file);
free(in);
return 1;
}
@@ -572,6 +573,7 @@ readruleset(void)
parseerror("too many ports");
if(lookup(r->qarg, badports) >= 0)
parseerror("illegal port name %s", r->qarg);
+ free(rs->port);
rs->port = estrdup(r->qarg);
}else
ncmd++; /* start or client rule */