Task #51903 - added.err

back to task #51903
download
Error: GCC_ANALYZER_WARNING (CWE-401):
dbus-broker-36/redhat-linux-build/../src/launch/config.c:88:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Ued20>.bustype.name’
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1012:13: enter_function: entry to ‘config_parser_end_fn’
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1020:12: branch_false: following ‘false’ branch...
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1022:13: branch_false: ...to here
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1022:12: branch_false: following ‘false’ branch...
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1031:17: branch_false: ...to here
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1068:21: call_function: calling ‘config_path_new_dir’ from ‘config_parser_end_fn’
#   86|                   (*filep)->is_dir = true;
#   87|   
#   88|->         return r;
#   89|   }
#   90|   

Error: GCC_ANALYZER_WARNING (CWE-401):
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1034:22: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Ued20>.bustype.name’
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1020:12: branch_false: following ‘false’ branch...
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1022:13: branch_false: ...to here
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1022:12: branch_false: following ‘false’ branch...
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1031:17: branch_false: ...to here
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1033:48: acquire_memory: allocated here
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1034:22: danger: ‘*((ConfigState)*(void *)userdata).current.<Ued20>.bustype.name’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 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-36/redhat-linux-build/../src/launch/config.c:1155:22: warning[-Wanalyzer-malloc-leak]: leak of ‘*((ConfigState)*(void *)userdata).current.<Ued20>.bustype.name’
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1020:12: branch_false: following ‘false’ branch...
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1022:13: branch_false: ...to here
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1022:12: branch_false: following ‘false’ branch...
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1031:17: branch_false: ...to here
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1154:51: acquire_memory: allocated here
dbus-broker-36/redhat-linux-build/../src/launch/config.c:1155:22: danger: ‘*((ConfigState)*(void *)userdata).current.<Ued20>.bustype.name’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 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;