]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: admin/halog: improve handling of memory allocation errors
authorIlia Shipitsin <chipitsine@gmail.com>
Sun, 31 May 2026 07:19:21 +0000 (09:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 31 May 2026 08:30:00 +0000 (10:30 +0200)
commit0bf22b86d0f36ade8dacfe399b5e3331b629bb69
tree34753eddd1f0d0cf1b9d76bc1309c55ceedc16fb
parentc1d6973571a4c6798f746c6a64e9d71b46ab49e5
CLEANUP: admin/halog: improve handling of memory allocation errors

Found via cppcheck  --force --enable=all --output-file=haproxy.log :

admin/halog/halog.c:1805:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ustat [nullPointerOutOfMemory]
admin/halog/halog.c:1806:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ustat [nullPointerOutOfMemory]
admin/halog/halog.c:1809:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ustat [nullPointerOutOfMemory]
admin/halog/halog.c:1810:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ustat [nullPointerOutOfMemory]
admin/halog/halog.c:1814:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ustat [nullPointerOutOfMemory]
admin/halog/halog.c