haproxy/admin/halog
Ilia Shipitsin 0bf22b86d0 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]
2026-05-31 10:30:00 +02:00
..
fgets2.c BUILD: halog: fix some incorrect signs in printf formats for integers 2022-04-12 08:40:38 +02:00
halog.c CLEANUP: admin/halog: improve handling of memory allocation errors 2026-05-31 10:30:00 +02:00
README BUILD: makefile: build halog with the correct flags 2021-04-02 17:48:42 +02:00

This needs to be built from the top makefile, for example :

  make admin/halog/halog