]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: use single exit path to ensure resource freeing is unified
authorSami Kerola <kerolasa@iki.fi>
Sat, 21 Mar 2020 09:30:57 +0000 (09:30 +0000)
committerSami Kerola <kerolasa@iki.fi>
Mon, 13 Apr 2020 11:13:51 +0000 (12:13 +0100)
commit73ff5a9561475deba3dc45d95554ca5daeaa086d
treecc9008a740bea696ce15b199776e9d3ce3ae8342
parentea4dcdc788f2736c0f36cc59e79fb421e5bef915
more: use single exit path to ensure resource freeing is unified

And be a little more complete all the allocations that can be released are,
but there is a small catch.  As mentioned in ncurses FAQ some leaks are
intentional, and that's the way they are.

Reference: https://invisible-island.net/ncurses/ncurses.faq.html#config_leaks
Reference: http://man7.org/linux/man-pages/man3/_nc_free_tinfo.3x.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/more.c