Task #132643 - python-systemd-236-5.fc45/scan-results.err
back to task #132643download
Error: GCC_ANALYZER_WARNING (CWE-401):
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) {