collect2 version 14.1.1 20240701 (Red Hat 14.1.1-7)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/14/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/14/lto-wrapper -plugin-opt=-fresolution=/tmp/cc1tyjaf.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 --package-metadata={"type":"rpm","name":"bluechi","version":"0.9.0-0.202407301353.git5fc35bf.fc41","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:41"} -pie /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/14/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/14 -L/usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/14/../../.. --version -z relro --as-needed -z pack-relative-relocs -z now --build-id=sha1 -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-redhat-linux/14/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crtn.o
collect2 version 14.1.1 20240701 (Red Hat 14.1.1-7)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/14/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/14/lto-wrapper -plugin-opt=-fresolution=/tmp/ccYBy37d.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 --package-metadata={"type":"rpm","name":"bluechi","version":"0.9.0-0.202407301353.git5fc35bf.fc41","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:41"} -pie /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/14/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/14 -L/usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/14/../../.. --version -z relro --as-needed -z pack-relative-relocs -z now --build-id=sha1 -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-redhat-linux/14/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crtn.o
Using built-in specs.
COLLECT_GCC=gcc
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none,amdgcn-amdhsa --enable-offload-defaulted --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.1.1 20240701 (Red Hat 14.1.1-7) (GCC) 
COLLECT_GCC_OPTIONS='-E' '-v' '-Wno-unknown-pragmas' '-mtune=generic' '-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/14/cc1 -E -quiet -v - -mtune=generic -march=x86-64 -Wno-unknown-pragmas -dumpbase -
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/14/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/14/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/14/include
 /usr/local/include
 /usr/include
End of search list.
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/14/:/usr/libexec/gcc/x86_64-redhat-linux/14/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/14/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/14/:/usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/14/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-Wno-unknown-pragmas' '-mtune=generic' '-march=x86-64'
collect2 version 14.1.1 20240701 (Red Hat 14.1.1-7)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/14/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/14/lto-wrapper -plugin-opt=-fresolution=/tmp/ccdoR1t3.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 --package-metadata={"type":"rpm","name":"bluechi","version":"0.9.0-0.202407301353.git5fc35bf.fc41","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:41"} -pie /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/14/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/14 -L/usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/14/../../.. --version -z relro --as-needed -z pack-relative-relocs -z now --build-id=sha1 -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/14/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crtn.o
collect2 version 14.1.1 20240701 (Red Hat 14.1.1-7)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/14/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/14/lto-wrapper -plugin-opt=-fresolution=/tmp/ccfSkjK7.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 --package-metadata={"type":"rpm","name":"bluechi","version":"0.9.0-0.202407301353.git5fc35bf.fc41","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:41"} -pie /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/14/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/14 -L/usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/14/../../.. --version -z relro --as-needed -z pack-relative-relocs -z now --build-id=sha1 -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-redhat-linux/14/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crtn.o
Using built-in specs.
COLLECT_GCC=g++
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-14.1.1-build/gcc-14.1.1-20240701/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none,amdgcn-amdhsa --enable-offload-defaulted --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.1.1 20240701 (Red Hat 14.1.1-7) (GCC) 
COLLECT_GCC_OPTIONS='-E' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/14/cc1plus -E -quiet -v -D_GNU_SOURCE - -mtune=generic -march=x86-64 -dumpbase -
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/14/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/14/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14
 /usr/lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/x86_64-redhat-linux
 /usr/lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/backward
 /usr/lib/gcc/x86_64-redhat-linux/14/include
 /usr/local/include
 /usr/include
End of search list.
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/14/:/usr/libexec/gcc/x86_64-redhat-linux/14/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/14/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/14/:/usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/14/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/cli/command.c:106: error: memleak(CWE-401): Memory leak: opt <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/cfg/cfg_get_set_test.c:31: warning: nullPointer(CWE-476): Possible null pointer dereference: value <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/cfg/cfg_get_set_test.c:31: warning: nullPointer(CWE-476): Possible null pointer dereference: expected_value <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/network/is_ipv4_test.c:21: warning: nullPointer(CWE-476): Possible null pointer dereference: in <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/network/is_ipv6_test.c:21: warning: nullPointer(CWE-476): Possible null pointer dereference: in <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/match_glob_test.c:20: warning: nullPointer(CWE-476): Possible null pointer dereference: in <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/match_glob_test.c:33: warning: nullPointer(CWE-476): Possible null pointer dereference: in <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/match_glob_test.c:34: warning: nullPointer(CWE-476): Possible null pointer dereference: glob <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/ends_with_test.c:20: warning: nullPointer(CWE-476): Possible null pointer dereference: str <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/string-util/ends_with_test.c:21: warning: nullPointer(CWE-476): Possible null pointer dereference: suffix <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/common/network/assemble_tcp_address.c:77: warning: nullPointer(CWE-476): Possible null pointer dereference: expectedResult <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/log/log_target_to_str_test.c:24: warning: nullPointer(CWE-476): Possible null pointer dereference: expected_log_target <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/test/log/string_to_log_level_test.c:20: warning: nullPointer(CWE-476): Possible null pointer dereference: in <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/metrics.c:21: error: unknownMacro(CWE-0): There is an unknown macro here somewhere. Configuration is required. If SD_BUS_PARAM is a macro then please configure it. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:1060: error: unknownMacro(CWE-0): There is an unknown macro here somewhere. Configuration is required. If SD_BUS_PARAM is a macro then please configure it. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/monitor.c:131: error: unknownMacro(CWE-0): There is an unknown macro here somewhere. Configuration is required. If SD_BUS_PARAM is a macro then please configure it. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:1060: error: unknownMacro(CWE-0): There is an unknown macro here somewhere. Configuration is required. If SD_BUS_PARAM is a macro then please configure it. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c:43: error: memleak(CWE-401): Memory leak: monitor <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c:48: error: memleak(CWE-401): Memory leak: monitor <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c:48: error: memleak(CWE-401): Memory leak: monitor.unit_name <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/node.c:1440: error: memleak(CWE-401): Memory leak: setup <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/node.c:1835: error: memleak(CWE-401): Memory leak: unit_name_copy <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/metrics.c:21: error: unknownMacro(CWE-0): There is an unknown macro here somewhere. Configuration is required. If SD_BUS_PARAM is a macro then please configure it. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/monitor.c:131: error: unknownMacro(CWE-0): There is an unknown macro here somewhere. Configuration is required. If SD_BUS_PARAM is a macro then please configure it. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c:43: error: memleak(CWE-401): Memory leak: monitor <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c:48: error: memleak(CWE-401): Memory leak: monitor <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/proxy_monitor.c:48: error: memleak(CWE-401): Memory leak: monitor.unit_name <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/node.c:1440: error: memleak(CWE-401): Memory leak: setup <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/node.c:1835: error: memleak(CWE-401): Memory leak: unit_name_copy <--[cppcheck]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:10: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h: In function ‘controller_method_list_units’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:44: warning: leak of ‘malloc0_array(16, 24, (long unsigned int)*(Controller *)userdata.number_of_nodes)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:733:12: note: (1) entry to ‘controller_method_list_units’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:738:15: note: (2) calling ‘malloc0_array’ from ‘controller_method_list_units’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:54:21: note: (3) entry to ‘malloc0_array’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:12: note: (4) following ‘true’ branch (when ‘element_size != 0’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:44: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:30: note: (6) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:61:16: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:63:12: note: (8) following ‘false’ branch (when ‘array_size <= total_size’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:67:16: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:67:16: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:738:15: note: (11) returning to ‘controller_method_list_units’ from ‘malloc0_array’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:739:12: note: (12) assuming ‘malloc0_array(16, 24, (long unsigned int)*(Controller *)userdata.number_of_nodes)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:739:12: note: (13) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:742:32: note: (14) ...to here <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:15: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:146:56: note: (15) following ‘false’ branch (when ‘node’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:745:9: note: in expansion of macro ‘LIST_FOREACH’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:763:9: note: (16) inlined call to ‘controller_method_list_units_maybe_done’ from ‘controller_method_list_units’ <--[gcc]
In function ‘controller_method_list_units_maybe_done’,
    inlined from ‘controller_method_list_units’ at ../src/controller/controller.c:763:9:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:706:16: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h: In function ‘controller_method_list_units’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:44: note: (18) ‘malloc0_array(16, 24, (long unsigned int)*(Controller *)userdata.number_of_nodes)’ leaks here; was allocated at (10) <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:10: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h: In function ‘controller_method_list_units’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:44: warning: leak of ‘malloc0_array(16, 24, (long unsigned int)*(Controller *)userdata.number_of_nodes)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:733:12: note: (1) entry to ‘controller_method_list_units’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:738:15: note: (2) calling ‘malloc0_array’ from ‘controller_method_list_units’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:54:21: note: (3) entry to ‘malloc0_array’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:12: note: (4) following ‘true’ branch (when ‘element_size != 0’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:44: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:30: note: (6) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:61:16: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:63:12: note: (8) following ‘false’ branch (when ‘array_size <= total_size’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:67:16: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:67:16: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:738:15: note: (11) returning to ‘controller_method_list_units’ from ‘malloc0_array’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:739:12: note: (12) assuming ‘malloc0_array(16, 24, (long unsigned int)*(Controller *)userdata.number_of_nodes)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:739:12: note: (13) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:742:32: note: (14) ...to here <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:15: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:146:56: note: (15) following ‘false’ branch (when ‘node’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:745:9: note: in expansion of macro ‘LIST_FOREACH’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:763:9: note: (16) inlined call to ‘controller_method_list_units_maybe_done’ from ‘controller_method_list_units’ <--[gcc]
In function ‘controller_method_list_units_maybe_done’,
    inlined from ‘controller_method_list_units’ at ../src/controller/controller.c:763:9:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/controller/controller.c:706:16: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h: In function ‘controller_method_list_units’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:56:44: note: (18) ‘malloc0_array(16, 24, (long unsigned int)*(Controller *)userdata.number_of_nodes)’ leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:1531: error: unknownMacro(CWE-0): There is an unknown macro here somewhere. Configuration is required. If SD_BUS_PARAM is a macro then please configure it. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:1531: error: unknownMacro(CWE-0): There is an unknown macro here somewhere. Configuration is required. If SD_BUS_PARAM is a macro then please configure it. <--[cppcheck]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.h:15, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:10: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c: In function ‘check_str’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h:14:22: warning: use of NULL ‘expected’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:36:14: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:104:6: note: (1) entry to ‘test_agent_apply_config_none’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:107:12: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:112:23: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:113:12: note: (4) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:118:16: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:118:16: note: (6) calling ‘check_agent’ from ‘test_agent_apply_config_none’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:43:6: note: (7) entry to ‘check_agent’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:52:28: note: (8) calling ‘check_str’ from ‘check_agent’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:31:6: note: (9) entry to ‘check_str’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:32:12: note: (10) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:35:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:35:12: note: (12) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h:14:22: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:36:14: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h:14:22: note: (14) argument 1 (‘expected’) NULL where non-null expected <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/test/agent/agent_apply_config_test.c:36:14: note: in expansion of macro ‘streq’ <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:9: <--[gcc]
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:15, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/client.h:8, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:10: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c: In function ‘fetch_unit_list’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:88:34: warning: dereference of NULL ‘unit_list’ [CWE-476] [-Wanalyzer-null-dereference] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:74:17: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:209:5: note: (1) entry to ‘method_list_units’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:212:12: note: (2) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:213:24: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:213:24: note: (4) calling ‘method_list_units_on_all’ from ‘method_list_units’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:80:12: note: (5) entry to ‘method_list_units_on_all’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:81:51: note: (6) calling ‘new_unit_list’ from ‘method_list_units_on_all’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:133:11: note: (7) entry to ‘new_unit_list’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (8) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:134:51: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:136:12: note: (9) assuming ‘calloc(1, 32)’ is NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:136:12: note: (10) following ‘true’ branch... <--[gcc]
cc1: note: (11) ...to here
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:81:51: note: (12) returning to ‘method_list_units_on_all’ from ‘new_unit_list’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:83:17: note: (13) calling ‘fetch_unit_list’ from ‘method_list_units_on_all’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:34:17: note: (14) entry to ‘fetch_unit_list’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:48:12: note: (15) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:53:13: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:54:12: note: (17) following ‘false’ branch... <--[gcc]
cc1: note: (18) ...to here
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:63:20: note: (19) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:67:20: note: (20) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:67:20: note: (21) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:70:20: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:70:20: note: (23) following ‘false’ branch (when ‘node_name’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:88:34: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:74:17: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:88:34: note: (25) dereference of NULL ‘unit_list’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-list-units.c:74:17: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/cli/command.h:8, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.h:8, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:6: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c: In function ‘node_connection_fmt_last_seen’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h:14:22: warning: use of possibly-NULL ‘*con.state’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:484:13: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:771:5: note: (1) entry to ‘method_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:772:9: note: (2) following ‘case 0:’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:773:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:774:24: note: (4) calling ‘method_print_node_status’ from ‘method_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:678:12: note: (5) entry to ‘method_print_node_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:692:12: note: (6) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:697:40: note: (7) inlined call to ‘nodes_new’ from ‘method_print_node_status’ <--[gcc]
In function ‘nodes_new’,
    inlined from ‘method_print_node_status’ at ../src/client/method-status.c:697:40:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:475:24: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c: In function ‘node_connection_fmt_last_seen’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:698:12: note: (9) following ‘false’ branch (when ‘nodes’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:703:13: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:704:12: note: (11) following ‘false’ branch... <--[gcc]
cc1: note: (12) ...to here
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:708:52: note: (13) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:709:29: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:716:20: note: (15) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:721:20: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:721:20: note: (17) following ‘false’ branch (when ‘node_name’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h:14:22: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:725:21: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:736:30: note: (19) calling ‘node_new’ from ‘method_print_node_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:446:17: note: (20) entry to ‘node_new’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:454:12: note: (21) following ‘false’ branch (when ‘node’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:457:28: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:458:12: note: (23) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:463:34: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:465:35: note: (25) this call could return NULL <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:15: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:89:20: note: (26) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:470:9: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:104:46: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:470:9: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:104:28: note: (28) following ‘false’ branch (when ‘_item’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:470:9: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:106:41: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:470:9: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:736:30: note: (30) returning to ‘method_print_node_status’ from ‘node_new’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:737:20: note: (31) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:741:20: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:741:20: note: (33) following ‘false’ branch (when ‘do_watch == 0’)... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:708:52: note: (35) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:761:12: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:761:12: note: (37) following ‘false’ branch (when ‘node_name’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:766:9: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:766:9: note: (39) calling ‘print_nodes’ from ‘method_print_node_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:536:13: note: (40) entry to ‘print_nodes’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:537:12: note: (41) following ‘false’ branch (when ‘clear_screen == 0’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:543:9: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:149:32: note: (43) following ‘true’ branch (when ‘curr’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:548:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:149:41: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:548:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:549:50: note: (45) calling ‘node_connection_fmt_last_seen’ from ‘print_nodes’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:483:14: note: (46) entry to ‘node_connection_fmt_last_seen’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/string-util.h:14:22: note: (47) argument 1 (‘*con.state’) from (25) could be NULL where non-null expected <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/client/method-status.c:484:13: note: in expansion of macro ‘streq’ <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:9: <--[gcc]
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:12, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:15, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:12: <--[gcc]
In function ‘agent_ref’,
    inlined from ‘agent_create_request_full’ at ../src/agent/agent.c:242:22:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:429:9: warning: leak of ‘calloc(1, 72)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2545:6: note: (1) entry to ‘agent_stop.part.0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:149:32: note: (2) following ‘true’ branch (when ‘proxy’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2561:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:149:41: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2561:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2562:17: note: (4) calling ‘agent_remove_proxy’ from ‘agent_stop.part.0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:436:6: note: (5) entry to ‘agent_remove_proxy’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:437:9: note: (6) following ‘true’ branch... <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/network.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:16: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/log/log.h:90:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:439:9: note: in expansion of macro ‘bc_log_debugf’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:441:12: note: (8) following ‘false’ branch (when ‘emit_removed == 0’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:450:18: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:461:12: note: (10) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:462:25: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:462:25: note: (12) calling ‘agent_stop_local_proxy_service’ from ‘agent_remove_proxy’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2693:12: note: (13) entry to ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2694:12: note: (14) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/log/log.h:92:9: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2698:9: note: in expansion of macro ‘bc_log_infof’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2702:57: note: (16) inlined call to ‘agent_create_request’ from ‘agent_stop_local_proxy_service’ <--[gcc]
In function ‘agent_create_request’,
    inlined from ‘agent_stop_local_proxy_service’ at ../src/agent/agent.c:2702:57:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:259:16: note: (17) calling ‘agent_create_request_full’ from ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:230:24: note: (18) entry to ‘agent_create_request_full’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:236:57: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:237:12: note: (20) assuming ‘calloc(1, 72)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:237:12: note: (21) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:241:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:242:22: note: (23) inlined call to ‘agent_ref’ from ‘agent_create_request_full’ <--[gcc]
In function ‘agent_ref’,
    inlined from ‘agent_create_request_full’ at ../src/agent/agent.c:242:22:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:429:9: note: (24) ‘calloc(1, 72)’ leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:429:21: warning: leak of ‘calloc(1, 72)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2693:12: note: (1) entry to ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2694:12: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/log/log.h:92:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2698:9: note: in expansion of macro ‘bc_log_infof’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2702:57: note: (4) inlined call to ‘agent_create_request’ from ‘agent_stop_local_proxy_service’ <--[gcc]
In function ‘agent_create_request’,
    inlined from ‘agent_stop_local_proxy_service’ at ../src/agent/agent.c:2702:57:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:259:16: note: (5) calling ‘agent_create_request_full’ from ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:230:24: note: (6) entry to ‘agent_create_request_full’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (7) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:236:57: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:237:12: note: (8) assuming ‘calloc(1, 72)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:237:12: note: (9) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:241:24: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:242:22: note: (11) inlined call to ‘agent_ref’ from ‘agent_create_request_full’ <--[gcc]
In function ‘agent_ref’,
    inlined from ‘agent_create_request_full’ at ../src/agent/agent.c:242:22:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:429:21: note: (12) ‘calloc(1, 72)’ leaks here; was allocated at (7) <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:12, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:15, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:12: <--[gcc]
In function ‘agent_ref’,
    inlined from ‘agent_create_request_full’ at ../src/agent/agent.c:242:22:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:429:9: warning: leak of ‘calloc(1, 72)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2545:6: note: (1) entry to ‘agent_stop.part.0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:149:32: note: (2) following ‘true’ branch (when ‘proxy’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2561:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/list.h:149:41: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2561:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2562:17: note: (4) calling ‘agent_remove_proxy’ from ‘agent_stop.part.0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:436:6: note: (5) entry to ‘agent_remove_proxy’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:437:9: note: (6) following ‘true’ branch... <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/network.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:16: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/log/log.h:90:9: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:439:9: note: in expansion of macro ‘bc_log_debugf’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:441:12: note: (8) following ‘false’ branch (when ‘emit_removed == 0’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:450:18: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:461:12: note: (10) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:462:25: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:462:25: note: (12) calling ‘agent_stop_local_proxy_service’ from ‘agent_remove_proxy’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2693:12: note: (13) entry to ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2694:12: note: (14) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/log/log.h:92:9: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2698:9: note: in expansion of macro ‘bc_log_infof’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2702:57: note: (16) inlined call to ‘agent_create_request’ from ‘agent_stop_local_proxy_service’ <--[gcc]
In function ‘agent_create_request’,
    inlined from ‘agent_stop_local_proxy_service’ at ../src/agent/agent.c:2702:57:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:259:16: note: (17) calling ‘agent_create_request_full’ from ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:230:24: note: (18) entry to ‘agent_create_request_full’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (19) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:236:57: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:237:12: note: (20) assuming ‘calloc(1, 72)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:237:12: note: (21) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:241:24: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:242:22: note: (23) inlined call to ‘agent_ref’ from ‘agent_create_request_full’ <--[gcc]
In function ‘agent_ref’,
    inlined from ‘agent_create_request_full’ at ../src/agent/agent.c:242:22:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:429:9: note: (24) ‘calloc(1, 72)’ leaks here; was allocated at (19) <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:429:21: warning: leak of ‘calloc(1, 72)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2693:12: note: (1) entry to ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2694:12: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/log/log.h:92:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2698:9: note: in expansion of macro ‘bc_log_infof’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:2702:57: note: (4) inlined call to ‘agent_create_request’ from ‘agent_stop_local_proxy_service’ <--[gcc]
In function ‘agent_create_request’,
    inlined from ‘agent_stop_local_proxy_service’ at ../src/agent/agent.c:2702:57:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:259:16: note: (5) calling ‘agent_create_request_full’ from ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:230:24: note: (6) entry to ‘agent_create_request_full’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/libbluechi/common/common.h:52:21: note: (7) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:236:57: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:237:12: note: (8) assuming ‘calloc(1, 72)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:237:12: note: (9) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:241:24: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:242:22: note: (11) inlined call to ‘agent_ref’ from ‘agent_create_request_full’ <--[gcc]
In function ‘agent_ref’,
    inlined from ‘agent_create_request_full’ at ../src/agent/agent.c:242:22:
/builddir/build/BUILD/bluechi-0.9.0-build/bluechi-0.9.0/src/agent/agent.c:429:21: note: (12) ‘calloc(1, 72)’ leaks here; was allocated at (7) <--[gcc]
