Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] python-systemd-236/src/systemd/_reader.c:145:1: warning[-Wanalyzer-malloc-leak]: leak of ‘s’ python-systemd-236/src/systemd/_reader.c:104:12: enter_function: entry to ‘strv_converter’ python-systemd-236/src/systemd/_reader.c:109:12: branch_false: following ‘false’ branch... python-systemd-236/src/systemd/_reader.c:112:26: branch_false: ...to here python-systemd-236/src/systemd/_reader.c:114:12: branch_false: following ‘false’ branch... python-systemd-236/src/systemd/_reader.c:114:12: branch_false: ...to here python-systemd-236/src/systemd/_reader.c:119:32: branch_true: following ‘true’ branch... python-systemd-236/src/systemd/_reader.c:121:47: branch_true: ...to here python-systemd-236/src/systemd/_reader.c:125:21: call_function: calling ‘str_converter’ from ‘strv_converter’ python-systemd-236/src/systemd/_reader.c:125:21: return_function: returning to ‘strv_converter’ from ‘str_converter’ python-systemd-236/src/systemd/_reader.c:126:20: branch_false: following ‘false’ branch... python-systemd-236/src/systemd/_reader.c:129:21: branch_false: ...to here python-systemd-236/src/systemd/_reader.c:129:21: acquire_memory: allocated here python-systemd-236/src/systemd/_reader.c:130:20: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)... python-systemd-236/src/systemd/_reader.c:135:17: branch_false: ...to here python-systemd-236/src/systemd/_reader.c:119:32: branch_false: following ‘false’ branch... python-systemd-236/src/systemd/_reader.c:119:32: branch_false: ...to here python-systemd-236/src/systemd/_reader.c:145:1: danger: ‘s’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14) # 143| # 144| return 0; # 145|-> } # 146| # 147| static int long_as_fd(PyObject *obj, int *fd) {
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-32.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | python-systemd-236-5.fc45 |
| store-results-to | /tmp/tmp65al_jw1/python-systemd-236-5.fc45.tar.xz |
| time-created | 2026-08-03 20:13:39 |
| time-finished | 2026-08-03 20:14:54 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp65al_jw1/python-systemd-236-5.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp65al_jw1/python-systemd-236-5.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |