aboutsummaryrefslogtreecommitdiff
path: root/hurd/hurdprio.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/hurdprio.c')
-rw-r--r--hurd/hurdprio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/hurd/hurdprio.c b/hurd/hurdprio.c
index 9360738988..9c9ed2ba7e 100644
--- a/hurd/hurdprio.c
+++ b/hurd/hurdprio.c
@@ -59,10 +59,16 @@ _hurd_priority_which_map (enum __priority_which which, int who,
/* Get procinfo to check the owner. */
int *oldpi = pi;
mach_msg_type_number_t oldpisize = pisize;
+ char *tw = 0;
+ size_t twsz = 0;
if (err = __USEPORT (PROC, __proc_getprocinfo (port, pids[i],
pi_flags,
- &pi, &pisize)))
+ &pi, &pisize,
+ &tw, &twsz)))
continue;
+ if (twsz)
+ /* Gratuitous. */
+ __vm_deallocate (__mach_task_self (), tw, twsz);
if (pi != oldpi && oldpi != pibuf)
/* Old buffer from last call was not reused; free it. */
__vm_deallocate (__mach_task_self (),