Free zbuf when kflag is true too.
CID: 273376
This commit is contained in:
parent
7e8fba7889
commit
7790c87b71
@ -511,6 +511,7 @@ reset(struct kvmvars *kvp)
|
||||
if (kvm_write(kvp->kd, (u_long)kvp->gpm.tos, zbuf,
|
||||
kvp->gpm.tossize) != (ssize_t)kvp->gpm.tossize)
|
||||
errx(15, "tos zero: %s", kvm_geterr(kvp->kd));
|
||||
free(zbuf);
|
||||
return;
|
||||
}
|
||||
(void)seteuid(0);
|
||||
|
Loading…
Reference in New Issue
Block a user