]> git.kaiwu.me - haproxy.git/commit
MINOR: addons/51degrees: handle memory allocation failures
authorIlia Shipitsin <chipitsine@gmail.com>
Wed, 13 May 2026 16:12:02 +0000 (18:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 31 May 2026 08:26:41 +0000 (10:26 +0200)
commita93b407811f348e7d5f0c631c6277f8814f050c4
treeae41e0b947919d3252758477cc9bab6d3bb34510
parent9393ff4f71fb34320c941304c9769b57988b6186
MINOR: addons/51degrees: handle memory allocation failures

Found via cppcheck  --force --enable=all --output-file=haproxy.log :
addons/51degrees/51d.c:130:3: warning: If memory allocation fails, then
  there is a possible null pointer dereference: name [nullPointerOutOfMemory]
addons/51degrees/51d.c:922:4: warning: If memory allocation fails, then
   there is a possible null pointer dereference: _51d_property_list [nullPointerOutOfMemory]
addons/51degrees/51d.c