collect2 version 15.0.1 20250114 (Red Hat 15.0.1-0)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/15/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/15/lto-wrapper -plugin-opt=-fresolution=/tmp/ccXFUjME.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.10.0-0.202501211912.git4deaab9.fc42","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:42"} -pie /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/15/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/15 -L/usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/15/../../.. -L/lib -L/usr/lib --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/15/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/crtn.o
collect2 version 15.0.1 20250114 (Red Hat 15.0.1-0)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/15/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/15/lto-wrapper -plugin-opt=-fresolution=/tmp/cc17wZZQ.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.10.0-0.202501211912.git4deaab9.fc42","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:42"} -pie /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/15/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/15 -L/usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/15/../../.. -L/lib -L/usr/lib --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/15/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/15/../../../../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-15.0.1-build/gcc-15.0.1-20250114/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 15.0.1 20250114 (Red Hat 15.0.1-0) (GCC) 
COLLECT_GCC_OPTIONS='-E' '-v' '-Wno-unknown-pragmas' '-mtune=generic' '-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/15/cc1 -E -quiet -v - -mtune=generic -march=x86-64 -Wno-unknown-pragmas -dumpbase -
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/15/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/15/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/15/include
 /usr/local/include
 /usr/include
End of search list.
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/15/:/usr/libexec/gcc/x86_64-redhat-linux/15/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/15/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/15/:/usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/15/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-Wno-unknown-pragmas' '-mtune=generic' '-march=x86-64'
collect2 version 15.0.1 20250114 (Red Hat 15.0.1-0)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/15/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/15/lto-wrapper -plugin-opt=-fresolution=/tmp/cc6s3FzC.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.10.0-0.202501211912.git4deaab9.fc42","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:42"} -pie /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/15/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/15 -L/usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/15/../../.. -L/lib -L/usr/lib --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/15/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/crtn.o
collect2 version 15.0.1 20250114 (Red Hat 15.0.1-0)
/usr/bin/ld -plugin /usr/libexec/gcc/x86_64-redhat-linux/15/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/x86_64-redhat-linux/15/lto-wrapper -plugin-opt=-fresolution=/tmp/ccEjal0h.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.10.0-0.202501211912.git4deaab9.fc42","architecture":"x86_64","osCpe":"cpe:/o:fedoraproject:fedora:42"} -pie /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/Scrt1.o /usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/15/crtbeginS.o -L/usr/lib/gcc/x86_64-redhat-linux/15 -L/usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/15/../../.. -L/lib -L/usr/lib --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/15/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/15/../../../../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-15.0.1-build/gcc-15.0.1-20250114/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 15.0.1 20250114 (Red Hat 15.0.1-0) (GCC) 
COLLECT_GCC_OPTIONS='-E' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/libexec/gcc/x86_64-redhat-linux/15/cc1plus -E -quiet -v -D_GNU_SOURCE - -mtune=generic -march=x86-64 -dumpbase -
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/15/include-fixed"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/15/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15
 /usr/lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/x86_64-redhat-linux
 /usr/lib/gcc/x86_64-redhat-linux/15/../../../../include/c++/15/backward
 /usr/lib/gcc/x86_64-redhat-linux/15/include
 /usr/local/include
 /usr/include
End of search list.
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/15/:/usr/libexec/gcc/x86_64-redhat-linux/15/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/15/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/15/:/usr/lib/gcc/x86_64-redhat-linux/15/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/15/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/event-util.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/subprojects/inih/ini.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/cli/command.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/cli/command.c:117: error: memleak(CWE-401): Memory leak: opt <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/cfg.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/bus/utils.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/subprojects/hashmap.c/hashmap.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/bus/bus.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/socket.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/list_test.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/cfg/cfg_def_conf_test.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/cfg/cfg_load_complete_configuration_test.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:11: <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_long’ at ../src/libbluechi/test/common/parse-util_test.c:20:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: warning: double-‘free’ of ‘*(void **)&msg’ [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c: In function ‘test_parse_long’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:105:5: note: (1) entry to ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:108:28: note: (2) calling ‘test_parse_long’ from ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:19:6: note: (3) entry to ‘test_parse_long’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:24:12: note: (4) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:35:17: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:35:12: note: (6) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:20:30: note: (7) inlined call to ‘freep’ from ‘test_parse_long’ <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_long’ at ../src/libbluechi/test/common/parse-util_test.c:20:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (9) first ‘free’ here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c: In function ‘test_parse_long’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:108:28: note: (10) returning to ‘main’ from ‘test_parse_long’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:108:25: note: (11) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:109:28: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:109:28: note: (13) calling ‘test_parse_long’ from ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:19:6: note: (14) entry to ‘test_parse_long’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:20:30: note: (15) inlined call to ‘freep’ from ‘test_parse_long’ <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_long’ at ../src/libbluechi/test/common/parse-util_test.c:20:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (16) second ‘free’ here; first ‘free’ was at (9) <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_long’ at ../src/libbluechi/test/common/parse-util_test.c:20:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: warning: double-‘free’ of ‘*(void **)&msg’ [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c: In function ‘test_parse_long’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:105:5: note: (1) entry to ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:108:28: note: (2) calling ‘test_parse_long’ from ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:19:6: note: (3) entry to ‘test_parse_long’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:24:12: note: (4) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:35:17: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:35:12: note: (6) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:20:30: note: (7) inlined call to ‘freep’ from ‘test_parse_long’ <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_long’ at ../src/libbluechi/test/common/parse-util_test.c:20:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (9) first ‘free’ here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c: In function ‘test_parse_long’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:108:28: note: (10) returning to ‘main’ from ‘test_parse_long’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:108:25: note: (11) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:109:28: note: (12) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:109:28: note: (13) calling ‘test_parse_long’ from ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:19:6: note: (14) entry to ‘test_parse_long’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:24:12: note: (15) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:35:17: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:35:12: note: (17) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:20:30: note: (18) inlined call to ‘freep’ from ‘test_parse_long’ <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_long’ at ../src/libbluechi/test/common/parse-util_test.c:20:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (19) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (20) second ‘free’ here; first ‘free’ was at (9) <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_port’ at ../src/libbluechi/test/common/parse-util_test.c:43:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: warning: double-‘free’ of ‘*(void **)&msg’ [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c: In function ‘test_parse_port’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:105:5: note: (1) entry to ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:108:25: note: (2) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:109:28: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:109:25: note: (4) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:110:28: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:110:25: note: (6) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:111:28: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:111:25: note: (8) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:112:28: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:112:25: note: (10) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:113:28: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:113:25: note: (12) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:114:28: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:114:25: note: (14) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:115:28: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:115:25: note: (16) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:117:28: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:117:28: note: (18) calling ‘test_parse_port’ from ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:42:6: note: (19) entry to ‘test_parse_port’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:47:12: note: (20) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:58:17: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:58:12: note: (22) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:43:30: note: (23) inlined call to ‘freep’ from ‘test_parse_port’ <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_port’ at ../src/libbluechi/test/common/parse-util_test.c:43:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (25) first ‘free’ here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c: In function ‘test_parse_port’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:117:28: note: (26) returning to ‘main’ from ‘test_parse_port’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:117:25: note: (27) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:118:28: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:118:28: note: (29) calling ‘test_parse_port’ from ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:42:6: note: (30) entry to ‘test_parse_port’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:43:30: note: (31) inlined call to ‘freep’ from ‘test_parse_port’ <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_port’ at ../src/libbluechi/test/common/parse-util_test.c:43:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (32) second ‘free’ here; first ‘free’ was at (25) <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_port’ at ../src/libbluechi/test/common/parse-util_test.c:43:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: warning: double-‘free’ of ‘*(void **)&msg’ [CWE-415] [-Wanalyzer-double-free] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c: In function ‘test_parse_port’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:105:5: note: (1) entry to ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:108:25: note: (2) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:109:28: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:109:25: note: (4) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:110:28: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:110:25: note: (6) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:111:28: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:111:25: note: (8) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:112:28: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:112:25: note: (10) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:113:28: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:113:25: note: (12) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:114:28: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:114:25: note: (14) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:115:28: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:115:25: note: (16) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:117:28: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:117:28: note: (18) calling ‘test_parse_port’ from ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:42:6: note: (19) entry to ‘test_parse_port’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:47:12: note: (20) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:58:17: note: (21) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:58:12: note: (22) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:43:30: note: (23) inlined call to ‘freep’ from ‘test_parse_port’ <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_port’ at ../src/libbluechi/test/common/parse-util_test.c:43:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (25) first ‘free’ here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c: In function ‘test_parse_port’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:117:28: note: (26) returning to ‘main’ from ‘test_parse_port’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:117:25: note: (27) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:118:28: note: (28) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:118:28: note: (29) calling ‘test_parse_port’ from ‘main’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:42:6: note: (30) entry to ‘test_parse_port’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:47:12: note: (31) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:58:17: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:58:12: note: (33) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/test/common/parse-util_test.c:43:30: note: (34) inlined call to ‘freep’ from ‘test_parse_port’ <--[gcc]
In function ‘freep’,
    inlined from ‘test_parse_port’ at ../src/libbluechi/test/common/parse-util_test.c:43:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (35) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (36) second ‘free’ here; first ‘free’ was at (25) <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.0/src/libbluechi/test/socket/socket_set_options_test.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:1380: 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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.0/src/controller/node.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/node.c:1558: error: memleak(CWE-401): Memory leak: setup <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/node.c:1953: error: memleak(CWE-401): Memory leak: unit_name_copy <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/proxy_monitor.c:43: error: memleak(CWE-401): Memory leak: monitor <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/proxy_monitor.c:48: error: memleak(CWE-401): Memory leak: monitor <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/proxy_monitor.c:48: error: memleak(CWE-401): Memory leak: monitor.unit_name <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/main.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:1380: 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.10.0-build/bluechi-0.10.0/src/controller/node.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/node.c:1558: error: memleak(CWE-401): Memory leak: setup <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/node.c:1953: error: memleak(CWE-401): Memory leak: unit_name_copy <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.0/src/controller/proxy_monitor.c:43: error: memleak(CWE-401): Memory leak: monitor <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/proxy_monitor.c:48: error: memleak(CWE-401): Memory leak: monitor <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/proxy_monitor.c:48: error: memleak(CWE-401): Memory leak: monitor.unit_name <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/main.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/test/controller/controller_apply_config_test.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:10: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h: In function ‘agent_fleet_request_start’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:44: warning: leak of ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:880:12: note: (1) entry to ‘agent_fleet_request_start’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:887:15: note: (2) calling ‘malloc0_array’ from ‘agent_fleet_request_start’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:69:21: note: (3) entry to ‘malloc0_array’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:12: note: (4) following ‘true’ branch (when ‘element_size != 0’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:44: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:30: note: (6) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:76:16: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:78:12: note: (8) following ‘false’ branch (when ‘array_size <= total_size’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:82:16: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:82:16: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:887:15: note: (11) returning to ‘agent_fleet_request_start’ from ‘malloc0_array’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:888:12: note: (12) assuming ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:888:12: note: (13) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:891:32: note: (14) ...to here <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:15: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:146:56: note: (15) following ‘false’ branch (when ‘node’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:896:9: note: in expansion of macro ‘LIST_FOREACH’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:914:9: note: (16) inlined call to ‘agent_fleet_request_maybe_done’ from ‘agent_fleet_request_start’ <--[gcc]
In function ‘agent_fleet_request_maybe_done’,
    inlined from ‘agent_fleet_request_start’ at ../src/controller/controller.c:914:9:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:854:16: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h: In function ‘agent_fleet_request_start’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:44: note: (18) ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’ leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1641: 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.10.0-build/bluechi-0.10.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:10: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h: In function ‘agent_fleet_request_start’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:44: warning: leak of ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:880:12: note: (1) entry to ‘agent_fleet_request_start’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:887:15: note: (2) calling ‘malloc0_array’ from ‘agent_fleet_request_start’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:69:21: note: (3) entry to ‘malloc0_array’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:12: note: (4) following ‘true’ branch (when ‘element_size != 0’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:44: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:30: note: (6) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:76:16: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:78:12: note: (8) following ‘false’ branch (when ‘array_size <= total_size’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:82:16: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (10) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:82:16: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:887:15: note: (11) returning to ‘agent_fleet_request_start’ from ‘malloc0_array’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:888:12: note: (12) assuming ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:888:12: note: (13) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:891:32: note: (14) ...to here <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:15: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:146:56: note: (15) following ‘false’ branch (when ‘node’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:896:9: note: in expansion of macro ‘LIST_FOREACH’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:914:9: note: (16) inlined call to ‘agent_fleet_request_maybe_done’ from ‘agent_fleet_request_start’ <--[gcc]
In function ‘agent_fleet_request_maybe_done’,
    inlined from ‘agent_fleet_request_start’ at ../src/controller/controller.c:914:9:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/controller/controller.c:854:16: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h: In function ‘agent_fleet_request_start’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:71:44: note: (18) ‘malloc0_array(24, 24, (long unsigned int)*controller.number_of_nodes)’ leaks here; was allocated at (10) <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1641: 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.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.h:15, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:10: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c: In function ‘check_str’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/string-util.h:18:22: warning: use of NULL ‘expected’ where non-null expected [CWE-476] [-Wanalyzer-null-argument] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:36:14: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:107:12: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:112:23: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:113:12: note: (4) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:118:16: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:43:6: note: (7) entry to ‘check_agent’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:31:6: note: (9) entry to ‘check_str’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:32:12: note: (10) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:35:12: note: (11) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:35:12: note: (12) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/string-util.h:18:22: note: (13) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/test/agent/agent_apply_config_test.c:36:14: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/string-util.h:18:22: note: (14) argument 1 (‘expected’) NULL where non-null expected <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.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.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:9: <--[gcc]
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-list-unit-files.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-monitor.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-unit-lifecycle.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-enable-disable.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-default-target.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:0: information: normalCheckLevelMaxBranches(CWE-0): Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. <--[cppcheck]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/cli/command.h:8, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.h:10, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:6: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c: In function ‘node_connection_fmt_last_seen’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/string-util.h:18:22: warning: use of possibly-NULL ‘*con.state’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:485:13: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:807:5: note: (1) entry to ‘method_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:808:9: note: (2) following ‘case 0:’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:809:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:810:24: note: (4) calling ‘method_print_node_status’ from ‘method_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:714:12: note: (5) entry to ‘method_print_node_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:728:12: note: (6) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:733: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:733:40:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:476:24: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c: In function ‘node_connection_fmt_last_seen’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:734:12: note: (9) following ‘false’ branch (when ‘nodes’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:739:13: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:740:12: note: (11) following ‘false’ branch... <--[gcc]
cc1: note: (12) ...to here
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:744:52: note: (13) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:745:29: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:752:20: note: (15) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:757:20: note: (16) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:757:20: note: (17) following ‘false’ branch (when ‘node_name’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/string-util.h:18:22: note: (18) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:761:21: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:772:30: note: (19) calling ‘node_new’ from ‘method_print_node_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:447:17: note: (20) entry to ‘node_new’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:455:12: note: (21) following ‘false’ branch (when ‘node’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:458:28: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:459:12: note: (23) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:464:34: note: (24) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:466:35: note: (25) this call could return NULL <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:15: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:89:20: note: (26) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:52:17: note: in expansion of macro ‘LIST_FIND_TAIL’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:471:9: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:104:46: note: (27) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:471:9: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:104:28: note: (28) following ‘false’ branch (when ‘_item’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:471:9: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:106:41: note: (29) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:53:17: note: in expansion of macro ‘LIST_INSERT_AFTER’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:471:9: note: in expansion of macro ‘LIST_APPEND’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:772:30: note: (30) returning to ‘method_print_node_status’ from ‘node_new’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:773:20: note: (31) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:777:20: note: (32) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:777:20: note: (33) following ‘false’ branch (when ‘do_watch == 0’)... <--[gcc]
cc1: note: (34) ...to here
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:744:52: note: (35) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:797:12: note: (36) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:797:12: note: (37) following ‘false’ branch (when ‘node_name’ is NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:802:9: note: (38) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:802:9: note: (39) calling ‘print_nodes’ from ‘method_print_node_status’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:537:13: note: (40) entry to ‘print_nodes’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:538:12: note: (41) following ‘false’ branch (when ‘clear_screen == 0’)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:544:9: note: (42) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:149:32: note: (43) following ‘true’ branch (when ‘curr’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:549:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:149:41: note: (44) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:549:9: note: in expansion of macro ‘LIST_FOREACH_SAFE’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:550:50: note: (45) calling ‘node_connection_fmt_last_seen’ from ‘print_nodes’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:484:14: note: (46) entry to ‘node_connection_fmt_last_seen’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/string-util.h:18:22: note: (47) argument 1 (‘*con.state’) from (25) could be NULL where non-null expected <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/client/method-status.c:485:13: note: in expansion of macro ‘streq’ <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:9: <--[gcc]
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c: In function ‘handle_connection_state_changed’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:130:1: warning: leak of ‘con_state’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:140:12: note: (1) entry to ‘on_properties_changed’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:152:20: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:156:29: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:158:20: note: (4) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:162:20: note: (5) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:162:20: note: (6) following ‘false’ branch... <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:7: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/string-util.h:18:22: note: (7) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:167:21: note: in expansion of macro ‘streq’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:167:20: note: (8) following ‘true’ branch (when the strings are equal)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:168:25: note: (9) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:168:25: note: (10) calling ‘handle_connection_state_changed’ from ‘on_properties_changed’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:100:12: note: (11) entry to ‘handle_connection_state_changed’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:104:13: note: (12) calling ‘parse_status_changed_from_property’ from ‘handle_connection_state_changed’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:75:12: note: (13) entry to ‘parse_status_changed_from_property’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:79:12: note: (14) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:83:15: note: (15) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:85:12: note: (16) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:89:34: note: (17) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:89:34: note: (18) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:104:13: note: (19) returning to ‘handle_connection_state_changed’ from ‘parse_status_changed_from_property’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:105:12: note: (20) following ‘true’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:102:30: note: (21) inlined call to ‘freep’ from ‘handle_connection_state_changed’ <--[gcc]
In function ‘freep’,
    inlined from ‘handle_connection_state_changed’ at ../src/is-online/is-online.c:102:30:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:41:9: note: (22) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c: In function ‘handle_connection_state_changed’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/is-online/is-online.c:130:1: note: (23) ‘con_state’ leaks here; was allocated at (18) <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:12, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:15, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:12: <--[gcc]
In function ‘agent_ref’,
    inlined from ‘agent_create_request_full’ at ../src/agent/agent.c:285:22:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:475:9: warning: leak of ‘calloc(1, 72)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1744:12: note: (1) entry to ‘agent_method_job_cancel’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1747:12: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1754:31: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1754:31: note: (4) inlined call to ‘agent_find_jobtracker_by_bluechi_id’ from ‘agent_method_job_cancel’ <--[gcc]
In function ‘agent_find_jobtracker_by_bluechi_id’,
    inlined from ‘agent_method_job_cancel’ at ../src/agent/agent.c:1754:31:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:146:56: note: (5) following ‘true’ branch (when ‘track’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1735:9: note: in expansion of macro ‘LIST_FOREACH’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1736:29: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1755:12: note: (7) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1761:42: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1760:57: note: (9) calling ‘agent_create_request_full’ from ‘agent_method_job_cancel’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:273:24: note: (10) entry to ‘agent_create_request_full’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:279:57: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:280:12: note: (12) assuming ‘calloc(1, 72)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:280:12: note: (13) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:284:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:285:22: note: (15) 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:285:22:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:475:9: note: (16) ‘calloc(1, 72)’ leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:475:21: warning: leak of ‘calloc(1, 72)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:2899:12: note: (1) entry to ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:2900:12: note: (2) following ‘false’ branch... <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/network.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:16: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/log/log.h:92:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:2904:9: note: in expansion of macro ‘bc_log_infof’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:2908: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:2908:57:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:302:16: note: (5) calling ‘agent_create_request_full’ from ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:273:24: note: (6) entry to ‘agent_create_request_full’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (7) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:279:57: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:280:12: note: (8) assuming ‘calloc(1, 72)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:280:12: note: (9) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:284:24: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:285: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:285:22:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:475:21: note: (12) ‘calloc(1, 72)’ leaks here; was allocated at (7) <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:12, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:15, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/bus/utils.h:11, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:12: <--[gcc]
In function ‘agent_ref’,
    inlined from ‘agent_create_request_full’ at ../src/agent/agent.c:285:22:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:475:9: warning: leak of ‘calloc(1, 72)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1744:12: note: (1) entry to ‘agent_method_job_cancel’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1747:12: note: (2) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1754:31: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1754:31: note: (4) inlined call to ‘agent_find_jobtracker_by_bluechi_id’ from ‘agent_method_job_cancel’ <--[gcc]
In function ‘agent_find_jobtracker_by_bluechi_id’,
    inlined from ‘agent_method_job_cancel’ at ../src/agent/agent.c:1754:31:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/list.h:146:56: note: (5) following ‘true’ branch (when ‘track’ is non-NULL)... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1735:9: note: in expansion of macro ‘LIST_FOREACH’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1736:29: note: (6) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1755:12: note: (7) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1761:42: note: (8) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:1760:57: note: (9) calling ‘agent_create_request_full’ from ‘agent_method_job_cancel’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:273:24: note: (10) entry to ‘agent_create_request_full’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (11) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:279:57: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:280:12: note: (12) assuming ‘calloc(1, 72)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:280:12: note: (13) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:284:24: note: (14) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:285:22: note: (15) 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:285:22:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:475:9: note: (16) ‘calloc(1, 72)’ leaks here; was allocated at (11) <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:475:21: warning: leak of ‘calloc(1, 72)’ [CWE-401] [-Wanalyzer-malloc-leak] <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:2899:12: note: (1) entry to ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:2900:12: note: (2) following ‘false’ branch... <--[gcc]
In file included from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/network.h:17, <--[gcc]
                 from /builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:16: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/log/log.h:92:9: note: (3) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:2904:9: note: in expansion of macro ‘bc_log_infof’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:2908: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:2908:57:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:302:16: note: (5) calling ‘agent_create_request_full’ from ‘agent_stop_local_proxy_service’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c: In function ‘agent_create_request_full’: <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:273:24: note: (6) entry to ‘agent_create_request_full’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/libbluechi/common/common.h:67:21: note: (7) allocated here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:279:57: note: in expansion of macro ‘malloc0’ <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:280:12: note: (8) assuming ‘calloc(1, 72)’ is non-NULL <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:280:12: note: (9) following ‘false’ branch... <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:284:24: note: (10) ...to here <--[gcc]
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:285: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:285:22:
/builddir/build/BUILD/bluechi-0.10.0-build/bluechi-0.10.0/src/agent/agent.c:475:21: note: (12) ‘calloc(1, 72)’ leaks here; was allocated at (7) <--[gcc]
