plumber: fix memory leaks

This commit is contained in:
cinap_lenrek 2012-01-29 03:48:24 +01:00
parent 105ebc327a
commit 83b56186e4
2 changed files with 5 additions and 0 deletions

View file

@ -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 */