mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
libkvm: Refine the previous commit (645eaa2cca
)
Resort free()'ing memory in kvm_close() to make it easier to MFC. MFC after: 3 days
This commit is contained in:
parent
0dcde5cc12
commit
483c6da3a2
|
@ -297,12 +297,12 @@ kvm_close(kvm_t *kd)
|
|||
free((void *) kd->argspc);
|
||||
if (kd->argv != 0)
|
||||
free((void *)kd->argv);
|
||||
if (kd->dpcpu_initialized != 0)
|
||||
free(kd->dpcpu_off);
|
||||
if (kd->pt_map != NULL)
|
||||
free(kd->pt_map);
|
||||
if (kd->page_map != NULL)
|
||||
free(kd->page_map);
|
||||
if (kd->dpcpu_initialized != 0)
|
||||
free(kd->dpcpu_off);
|
||||
if (kd->sparse_map != MAP_FAILED)
|
||||
munmap(kd->sparse_map, kd->pt_sparse_size);
|
||||
free((void *)kd);
|
||||
|
|
Loading…
Reference in a new issue