plumber: fix memory leaks
This commit is contained in:
parent
105ebc327a
commit
83b56186e4
2 changed files with 5 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue