Task #69675 - fixed.err
back to task #69675download
Error: GCC_ANALYZER_WARNING (CWE-401):
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_path_new_dir’
dbus-broker-37/src/launch/config.c:88:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<U5d20>.bustype.name’
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_path_new_dir’
# 86| (*filep)->is_dir = true;
# 87|
# 88|-> return r;
# 89| }
# 90|
Error: GCC_ANALYZER_WARNING (CWE-401):
dbus-broker-37/src/launch/config.c: scope_hint: In function ‘config_parser_end_fn’
dbus-broker-37/src/launch/config.c:1034:27: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<U5d20>.bustype.name’
# 1032| case CONFIG_NODE_TYPE:
# 1033| state->current->bustype.name = strdup(state->current->cdata);
# 1034|-> if (!state->current->bustype.name) {
# 1035| state->error = error_origin(-ENOMEM);
# 1036| return;
Error: GCC_ANALYZER_WARNING (CWE-401):
dbus-broker-37/src/launch/config.c:1155:27: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<U5d20>.bustype.name’
# 1153| case CONFIG_NODE_SERVICEDIR: {
# 1154| state->current->servicedir.path = strdup(state->current->cdata);
# 1155|-> if (!state->current->servicedir.path) {
# 1156| state->error = error_origin(-ENOMEM);
# 1157| return;