]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: avoid double free() on exit
authorKarel Zak <kzak@redhat.com>
Thu, 15 Dec 2016 13:40:26 +0000 (14:40 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 15 Dec 2016 13:40:26 +0000 (14:40 +0100)
commit0ed2a954714992938b35893b70197090a61b3b2e
treeacca5ca94fbeeebc1712ebbe0244eefdffcac76f
parent06e204889f38fa9c231b9744f2ed7f9c8cbfbb7b
more: avoid double free() on exit

On 'q' command more(1) calls end_it() function with _exit(). The
_exit() may suspend program execution due to pending I/O on very
loaded server. In this time SIGINT may be delivered due to impatient
user who will press ^C.

And then end_it() cleanup function may be executed by signal handler
too. The result is double free()...

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1403971
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/more.c