Free zbuf when kflag is true too.
CID: 273376
This commit is contained in:
parent
f079001a1d
commit
9311b3a7c5
@ -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