mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
procctl(PROC_ASLR_STATUS): fix vmspace leak
(cherry picked from commit 0bdb2cbf9d)
This commit is contained in:
parent
4c78f4997a
commit
b1381828c6
1 changed files with 3 additions and 2 deletions
|
|
@ -509,8 +509,9 @@ aslr_status(struct thread *td, struct proc *p, int *data)
|
|||
_PHOLD(p);
|
||||
PROC_UNLOCK(p);
|
||||
vm = vmspace_acquire_ref(p);
|
||||
if (vm != NULL && (vm->vm_map.flags & MAP_ASLR) != 0) {
|
||||
d |= PROC_ASLR_ACTIVE;
|
||||
if (vm != NULL) {
|
||||
if ((vm->vm_map.flags & MAP_ASLR) != 0)
|
||||
d |= PROC_ASLR_ACTIVE;
|
||||
vmspace_free(vm);
|
||||
}
|
||||
PROC_LOCK(p);
|
||||
|
|
|
|||
Loading…
Reference in a new issue