Free zbuf when kflag is true too.

CID: 273376
This commit is contained in:
imp 2017-12-28 05:34:04 +00:00
parent f079001a1d
commit 9311b3a7c5

View File

@ -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);