top: move free(prev_hist) out of signal path
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 19 Aug 2016 09:07:31 +0000 (11:07 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 19 Aug 2016 09:07:31 +0000 (11:07 +0200)
commitaedc3fe19fac368dc363050e0387d263b7e01cc6
treed72598a6c9d97ed1865d0f0ddc8ca9dc5c202c9b
parentb11be131b73fd47e12b1a9f1c52ac0a1ed222aee
top: move free(prev_hist) out of signal path

It was seen being called recursively on repeated signals,
leading to double free

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/top.c