mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Free zbuf when kflag is true too.
CID: 273376
This commit is contained in:
parent
7e8fba7889
commit
7790c87b71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327272
|
@ -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 a new issue