[Hurd] Fix deallocation after proc_getprocinfo call
authorSamuel Thibault <samuel.thibault@gnu.org>
Sun, 23 Nov 2014 15:19:46 +0000 (16:19 +0100)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 24 Nov 2014 09:28:03 +0000 (13:28 +0400)
commita441dfbc4e339198cf9d27d21579fd04ff8c6e2c
treefde5fd8aacc47898b17c2f0c35895ba3b5799142
parent4c9e848275b2073db55ebc1b7c18a52ab32954eb
[Hurd] Fix deallocation after proc_getprocinfo call

2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
elements pi_len by the size of the elements before calling
vm_deallocate.
(inf_validate_task_sc): Likewise, and properly deallocate the
noise array.
gdb/ChangeLog
gdb/gnu-nat.c