]> git.ipfire.org Git - thirdparty/newt.git/commit
improve handling of malloc failures master
authorRobert Gill <rtgill82@gmail.com>
Wed, 18 Jun 2025 20:54:37 +0000 (20:54 +0000)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 19 Jun 2025 06:48:28 +0000 (08:48 +0200)
commitd92e05d0aa2a28808b06bf48f4da52d1b1519082
treeaa57555daffe1c67b1d8a361e865d4ebcc8c9408
parent9b9e7e8936f51f83a7259c5f0a9b4ff909cbd39a
improve handling of malloc failures

Return NULL on malloc failures when creating new components and from
newtReflowText. Internal buffers are still not checked, but this should
allow some memory allocation errors to be made more obvious and possibly
caught without breaking current API compatibility.

[ML: fixed fields deallocation in newtCreateGrid()]
buttonbar.c
checkbox.c
checkboxtree.c
entry.c
form.c
grid.c
label.c
scale.c
scrollbar.c
textbox.c