fix tsearch to avoid crash on oom
authorSzabolcs Nagy <nsz@port70.net>
Sat, 5 Dec 2015 20:04:18 +0000 (21:04 +0100)
committerRich Felker <dalias@aerifal.cx>
Tue, 8 Dec 2015 23:52:38 +0000 (18:52 -0500)
commitbc9744763afe72d626e7b9f461001d425582fe9c
treecdb68eaf09ef84a13873ff2131a399d0a43ac4ef
parente4f9d811684011d8a67e363827de39d5f2d3ae5a
fix tsearch to avoid crash on oom

malloc failure was not properly propagated in the insertion method
which led to null pointer dereference.
src/search/tsearch_avl.c