Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
lilv-0.24.26/include/lilv/lilv.h:1775:3: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
# 1773|                              void*         data_location)
# 1774|   {
# 1775|->   instance->lv2_descriptor->connect_port(
# 1776|       instance->lv2_handle, port_index, data_location);
# 1777|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
lilv-0.24.26/include/lilv/lilv.h:1775:3: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
# 1773|                              void*         data_location)
# 1774|   {
# 1775|->   instance->lv2_descriptor->connect_port(
# 1776|       instance->lv2_handle, port_index, data_location);
# 1777|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
lilv-0.24.26/include/lilv/lilv.h:1794:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
# 1792|   {
# 1793|     if (instance->lv2_descriptor->activate) {
# 1794|->     instance->lv2_descriptor->activate(instance->lv2_handle);
# 1795|     }
# 1796|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
lilv-0.24.26/include/lilv/lilv.h:1794:5: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
# 1792|   {
# 1793|     if (instance->lv2_descriptor->activate) {
# 1794|->     instance->lv2_descriptor->activate(instance->lv2_handle);
# 1795|     }
# 1796|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
lilv-0.24.26/include/lilv/lilv.h:1811:3: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
# 1809|   lilv_instance_run(LilvInstance* instance, uint32_t sample_count)
# 1810|   {
# 1811|->   instance->lv2_descriptor->run(instance->lv2_handle, sample_count);
# 1812|   }
# 1813|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
lilv-0.24.26/src/instance.c:45:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘local_features’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_true: following ‘true’ branch (when ‘features’ is NULL)...
lilv-0.24.26/src/instance.c:44:46: branch_true: ...to here
lilv-0.24.26/src/instance.c:44:46: acquire_memory: this call could return NULL
lilv-0.24.26/src/instance.c:45:5: danger: ‘local_features’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   43|     if (features == NULL) {
#   44|       local_features    = (const LV2_Feature**)malloc(sizeof(LV2_Feature*));
#   45|->     local_features[0] = NULL;
#   46|     }
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
lilv-0.24.26/src/instance.c:50:32: warning[-Wanalyzer-malloc-leak]: leak of ‘local_features’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_true: following ‘true’ branch (when ‘features’ is NULL)...
lilv-0.24.26/src/instance.c:44:46: branch_true: ...to here
lilv-0.24.26/src/instance.c:44:46: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:50:32: throw: if ‘lilv_lib_get_plugin’ throws an exception...
lilv-0.24.26/src/instance.c:50:32: danger: ‘local_features’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#   48|     // Search for plugin by URI
#   49|     for (uint32_t i = 0; true; ++i) {
#   50|->     const LV2_Descriptor* ld = lilv_lib_get_plugin(lib, i);
#   51|       if (!ld) {
#   52|         LILV_ERRORF("No plugin <%s> in <%s>\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
lilv-0.24.26/src/instance.c:52:7: warning[-Wanalyzer-malloc-leak]: leak of ‘local_features’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_true: following ‘true’ branch (when ‘features’ is NULL)...
lilv-0.24.26/src/instance.c:44:46: branch_true: ...to here
lilv-0.24.26/src/instance.c:44:46: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:52:7: throw: if ‘lilv_node_as_uri’ throws an exception...
lilv-0.24.26/src/instance.c:52:7: danger: ‘local_features’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#   50|       const LV2_Descriptor* ld = lilv_lib_get_plugin(lib, i);
#   51|       if (!ld) {
#   52|->       LILV_ERRORF("No plugin <%s> in <%s>\n",
#   53|                     lilv_node_as_uri(lilv_plugin_get_uri(plugin)),
#   54|                     lilv_node_as_uri(lib_uri));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
lilv-0.24.26/src/instance.c:55:7: warning[-Wanalyzer-malloc-leak]: leak of ‘local_features’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_true: following ‘true’ branch (when ‘features’ is NULL)...
lilv-0.24.26/src/instance.c:44:46: branch_true: ...to here
lilv-0.24.26/src/instance.c:44:46: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:55:7: throw: if ‘lilv_lib_close’ throws an exception...
lilv-0.24.26/src/instance.c:55:7: danger: ‘local_features’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#   53|                     lilv_node_as_uri(lilv_plugin_get_uri(plugin)),
#   54|                     lilv_node_as_uri(lib_uri));
#   55|->       lilv_lib_close(lib);
#   56|         break; // return NULL
#   57|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
lilv-0.24.26/src/instance.c:59:10: warning[-Wanalyzer-malloc-leak]: leak of ‘local_features’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_true: following ‘true’ branch (when ‘features’ is NULL)...
lilv-0.24.26/src/instance.c:44:46: branch_true: ...to here
lilv-0.24.26/src/instance.c:44:46: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:51:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:59:10: branch_false: ...to here
lilv-0.24.26/src/instance.c:59:10: throw: if ‘lilv_plugin_get_uri’ throws an exception...
lilv-0.24.26/src/instance.c:59:10: danger: ‘local_features’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#   57|       }
#   58|   
#   59|->     if (!strcmp(ld->URI, lilv_node_as_uri(lilv_plugin_get_uri(plugin)))) {
#   60|         // Create LilvInstance to return
#   61|         result                 = (LilvInstance*)malloc(sizeof(LilvInstance));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
lilv-0.24.26/src/instance.c:62:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_false: following ‘false’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:51:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:59:10: branch_false: ...to here
lilv-0.24.26/src/instance.c:61:47: acquire_memory: this call could return NULL
lilv-0.24.26/src/instance.c:62:7: danger: ‘result’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/10)
#   60|         // Create LilvInstance to return
#   61|         result                 = (LilvInstance*)malloc(sizeof(LilvInstance));
#   62|->       result->lv2_descriptor = ld;
#   63|         result->lv2_handle     = ld->instantiate(
#   64|           ld, sample_rate, bundle_path, (features) ? features : local_features);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
lilv-0.24.26/src/instance.c:63:32: warning[-Wanalyzer-malloc-leak]: leak of ‘local_features’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_true: following ‘true’ branch (when ‘features’ is NULL)...
lilv-0.24.26/src/instance.c:44:46: branch_true: ...to here
lilv-0.24.26/src/instance.c:44:46: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:51:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:59:10: branch_false: ...to here
lilv-0.24.26/src/instance.c:63:32: branch_false: following ‘false’ branch (when ‘features’ is NULL)...
lilv-0.24.26/src/instance.c:63:32: branch_false: ...to here
lilv-0.24.26/src/instance.c:63:32: throw: if the called function throws an exception...
lilv-0.24.26/src/instance.c:63:32: danger: ‘local_features’ leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#   61|         result                 = (LilvInstance*)malloc(sizeof(LilvInstance));
#   62|         result->lv2_descriptor = ld;
#   63|->       result->lv2_handle     = ld->instantiate(
#   64|           ld, sample_rate, bundle_path, (features) ? features : local_features);
#   65|         result->pimpl = lib;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
lilv-0.24.26/src/instance.c:63:32: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_false: following ‘false’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:51:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:59:10: branch_false: ...to here
lilv-0.24.26/src/instance.c:61:47: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:63:32: branch_true: following ‘true’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:63:32: branch_true: ...to here
lilv-0.24.26/src/instance.c:63:32: throw: if the called function throws an exception...
lilv-0.24.26/src/instance.c:63:32: danger: ‘result’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
#   61|         result                 = (LilvInstance*)malloc(sizeof(LilvInstance));
#   62|         result->lv2_descriptor = ld;
#   63|->       result->lv2_handle     = ld->instantiate(
#   64|           ld, sample_rate, bundle_path, (features) ? features : local_features);
#   65|         result->pimpl = lib;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
lilv-0.24.26/src/instance.c:71:3: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_false: following ‘false’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:51:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:59:10: branch_false: ...to here
lilv-0.24.26/src/instance.c:61:47: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:63:32: branch_true: following ‘true’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:63:32: branch_true: ...to here
lilv-0.24.26/src/instance.c:71:3: throw: if ‘serd_free’ throws an exception...
lilv-0.24.26/src/instance.c:71:3: danger: ‘result’ leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
#   69|   
#   70|     free(local_features);
#   71|->   serd_free(bundle_path);
#   72|   
#   73|     if (result) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
lilv-0.24.26/src/instance.c:82:30: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_false: following ‘false’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:51:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:59:10: branch_false: ...to here
lilv-0.24.26/src/instance.c:61:47: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:63:32: branch_true: following ‘true’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:63:32: branch_true: ...to here
lilv-0.24.26/src/instance.c:73:6: branch_true: following ‘true’ branch (when ‘result’ is non-NULL)...
lilv-0.24.26/src/instance.c:74:9: branch_true: ...to here
lilv-0.24.26/src/instance.c:74:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:74:8: branch_false: ...to here
lilv-0.24.26/src/instance.c:82:30: throw: if ‘lilv_plugin_get_num_ports’ throws an exception...
lilv-0.24.26/src/instance.c:82:30: danger: ‘result’ leaks here; was allocated at [(11)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/10)
#   80|   
#   81|       // "Connect" all ports to NULL (catches bugs)
#   82|->     for (uint32_t i = 0; i < lilv_plugin_get_num_ports(plugin); ++i) {
#   83|         result->lv2_descriptor->connect_port(result->lv2_handle, i, NULL);
#   84|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
lilv-0.24.26/src/instance.c:83:7: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
lilv-0.24.26/src/instance.c:22:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:27:38: branch_false: ...to here
lilv-0.24.26/src/instance.c:29:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:34:5: branch_false: ...to here
lilv-0.24.26/src/instance.c:37:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:43:6: branch_false: following ‘false’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:43:6: branch_false: ...to here
lilv-0.24.26/src/instance.c:51:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:59:10: branch_false: ...to here
lilv-0.24.26/src/instance.c:61:47: acquire_memory: allocated here
lilv-0.24.26/src/instance.c:63:32: branch_true: following ‘true’ branch (when ‘features’ is non-NULL)...
lilv-0.24.26/src/instance.c:63:32: branch_true: ...to here
lilv-0.24.26/src/instance.c:73:6: branch_true: following ‘true’ branch (when ‘result’ is non-NULL)...
lilv-0.24.26/src/instance.c:74:9: branch_true: ...to here
lilv-0.24.26/src/instance.c:74:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/instance.c:74:8: branch_false: ...to here
lilv-0.24.26/src/instance.c:82:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/instance.c:83:7: branch_true: ...to here
lilv-0.24.26/src/instance.c:83:7: throw: if the called function throws an exception...
lilv-0.24.26/src/instance.c:83:7: danger: ‘result’ leaks here; was allocated at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
#   81|       // "Connect" all ports to NULL (catches bugs)
#   82|       for (uint32_t i = 0; i < lilv_plugin_get_num_ports(plugin); ++i) {
#   83|->       result->lv2_descriptor->connect_port(result->lv2_handle, i, NULL);
#   84|       }
#   85|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
lilv-0.24.26/src/lib.c:70:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘llib’
lilv-0.24.26/src/lib.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:30:31: branch_false: ...to here
lilv-0.24.26/src/lib.c:33:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:37:3: branch_false: ...to here
lilv-0.24.26/src/lib.c:39:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:46:30: branch_false: ...to here
lilv-0.24.26/src/lib.c:52:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:60:13: branch_false: ...to here
lilv-0.24.26/src/lib.c:60:13: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:67:3: branch_false: ...to here
lilv-0.24.26/src/lib.c:69:36: acquire_memory: this call could return NULL
lilv-0.24.26/src/lib.c:70:3: danger: ‘llib’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#   68|   
#   69|     LilvLib* llib        = (LilvLib*)malloc(sizeof(LilvLib));
#   70|->   llib->world          = world;
#   71|     llib->uri            = lilv_node_duplicate(uri);
#   72|     llib->bundle_path    = lilv_strdup(bundle_path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
lilv-0.24.26/src/lib.c:71:26: warning[-Wanalyzer-malloc-leak]: leak of ‘llib’
lilv-0.24.26/src/lib.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:30:31: branch_false: ...to here
lilv-0.24.26/src/lib.c:33:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:37:3: branch_false: ...to here
lilv-0.24.26/src/lib.c:39:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:46:30: branch_false: ...to here
lilv-0.24.26/src/lib.c:52:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:60:13: branch_false: ...to here
lilv-0.24.26/src/lib.c:60:13: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:67:3: branch_false: ...to here
lilv-0.24.26/src/lib.c:69:36: acquire_memory: allocated here
lilv-0.24.26/src/lib.c:71:26: throw: if ‘lilv_node_duplicate’ throws an exception...
lilv-0.24.26/src/lib.c:71:26: danger: ‘llib’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#   69|     LilvLib* llib        = (LilvLib*)malloc(sizeof(LilvLib));
#   70|     llib->world          = world;
#   71|->   llib->uri            = lilv_node_duplicate(uri);
#   72|     llib->bundle_path    = lilv_strdup(bundle_path);
#   73|     llib->lib            = lib;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
lilv-0.24.26/src/lib.c:72:26: warning[-Wanalyzer-malloc-leak]: leak of ‘llib’
lilv-0.24.26/src/lib.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:30:31: branch_false: ...to here
lilv-0.24.26/src/lib.c:33:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:37:3: branch_false: ...to here
lilv-0.24.26/src/lib.c:39:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:46:30: branch_false: ...to here
lilv-0.24.26/src/lib.c:52:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:60:13: branch_false: ...to here
lilv-0.24.26/src/lib.c:60:13: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:67:3: branch_false: ...to here
lilv-0.24.26/src/lib.c:69:36: acquire_memory: allocated here
lilv-0.24.26/src/lib.c:72:26: throw: if ‘lilv_strdup’ throws an exception...
lilv-0.24.26/src/lib.c:72:26: danger: ‘llib’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#   70|     llib->world          = world;
#   71|     llib->uri            = lilv_node_duplicate(uri);
#   72|->   llib->bundle_path    = lilv_strdup(bundle_path);
#   73|     llib->lib            = lib;
#   74|     llib->lv2_descriptor = df;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
lilv-0.24.26/src/lib.c:78:3: warning[-Wanalyzer-malloc-leak]: leak of ‘llib’
lilv-0.24.26/src/lib.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:30:31: branch_false: ...to here
lilv-0.24.26/src/lib.c:33:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:37:3: branch_false: ...to here
lilv-0.24.26/src/lib.c:39:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:46:30: branch_false: ...to here
lilv-0.24.26/src/lib.c:52:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:60:13: branch_false: ...to here
lilv-0.24.26/src/lib.c:60:13: branch_false: following ‘false’ branch...
lilv-0.24.26/src/lib.c:67:3: branch_false: ...to here
lilv-0.24.26/src/lib.c:69:36: acquire_memory: allocated here
lilv-0.24.26/src/lib.c:78:3: throw: if ‘zix_tree_insert’ throws an exception...
lilv-0.24.26/src/lib.c:78:3: danger: ‘llib’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
#   76|     llib->refs           = 1;
#   77|   
#   78|->   zix_tree_insert(world->libs, llib, NULL);
#   79|     return llib;
#   80|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
lilv-0.24.26/src/node.c:23:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘val’
lilv-0.24.26/src/node.c:94:1: enter_function: entry to ‘lilv_node_new_from_node’
lilv-0.24.26/src/node.c:96:6: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
lilv-0.24.26/src/node.c:104:11: branch_false: ...to here
lilv-0.24.26/src/node.c:135:7: call_function: calling ‘lilv_node_new’ from ‘lilv_node_new_from_node’
lilv-0.24.26/src/node.c:135:7: return_function: returning to ‘lilv_node_new_from_node’ from ‘lilv_node_new’
lilv-0.24.26/src/node.c:136:5: call_function: calling ‘lilv_node_set_numerics_from_string’ from ‘lilv_node_new_from_node’
#   21|   lilv_node_set_numerics_from_string(LilvNode* val)
#   22|   {
#   23|->   const char* str = (const char*)sord_node_get_string(val->node);
#   24|   
#   25|     switch (val->type) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
lilv-0.24.26/src/node.c:52:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘val’
lilv-0.24.26/src/node.c:51:30: acquire_memory: this call could return NULL
lilv-0.24.26/src/node.c:52:3: danger: ‘val’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   50|   {
#   51|     LilvNode* val = (LilvNode*)malloc(sizeof(LilvNode));
#   52|->   val->world    = world;
#   53|     val->type     = type;
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
lilv-0.24.26/src/node.c:58:17: warning[-Wanalyzer-malloc-leak]: leak of ‘lilv_node_new(world, 0,  s.buf)’
lilv-0.24.26/src/node.c:150:1: enter_function: entry to ‘lilv_new_file_uri’
lilv-0.24.26/src/node.c:167:19: call_function: calling ‘lilv_node_new’ from ‘lilv_new_file_uri’
lilv-0.24.26/src/node.c:167:19: return_function: returning to ‘lilv_new_file_uri’ from ‘lilv_node_new’
lilv-0.24.26/src/node.c:168:3: throw: if ‘serd_node_free’ throws an exception...
lilv-0.24.26/src/node.c:58:17: danger: ‘lilv_node_new(world, 0,  s.buf)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#   56|     switch (type) {
#   57|     case LILV_VALUE_URI:
#   58|->     val->node = sord_new_uri(world->world, ustr);
#   59|       break;
#   60|     case LILV_VALUE_BLANK:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
lilv-0.24.26/src/node.c:58:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
lilv-0.24.26/src/node.c:51:30: acquire_memory: allocated here
lilv-0.24.26/src/node.c:58:17: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/node.c:58:17: danger: ‘val’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   56|     switch (type) {
#   57|     case LILV_VALUE_URI:
#   58|->     val->node = sord_new_uri(world->world, ustr);
#   59|       break;
#   60|     case LILV_VALUE_BLANK:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
lilv-0.24.26/src/node.c:61:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
lilv-0.24.26/src/node.c:51:30: acquire_memory: allocated here
lilv-0.24.26/src/node.c:61:17: throw: if ‘sord_new_blank’ throws an exception...
lilv-0.24.26/src/node.c:61:17: danger: ‘val’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   59|       break;
#   60|     case LILV_VALUE_BLANK:
#   61|->     val->node = sord_new_blank(world->world, ustr);
#   62|       break;
#   63|     case LILV_VALUE_STRING:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
lilv-0.24.26/src/node.c:64:17: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
lilv-0.24.26/src/node.c:51:30: acquire_memory: allocated here
lilv-0.24.26/src/node.c:64:17: throw: if ‘sord_new_literal’ throws an exception...
lilv-0.24.26/src/node.c:64:17: danger: ‘val’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   62|       break;
#   63|     case LILV_VALUE_STRING:
#   64|->     val->node = sord_new_literal(world->world, NULL, ustr, NULL);
#   65|       break;
#   66|     case LILV_VALUE_INT:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
lilv-0.24.26/src/node.c:68:7: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
lilv-0.24.26/src/node.c:51:30: acquire_memory: allocated here
lilv-0.24.26/src/node.c:68:7: throw: if ‘sord_new_literal’ throws an exception...
lilv-0.24.26/src/node.c:68:7: danger: ‘val’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   66|     case LILV_VALUE_INT:
#   67|       val->node =
#   68|->       sord_new_literal(world->world, world->uris.xsd_integer, ustr, NULL);
#   69|       break;
#   70|     case LILV_VALUE_FLOAT:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
lilv-0.24.26/src/node.c:72:7: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
lilv-0.24.26/src/node.c:51:30: acquire_memory: allocated here
lilv-0.24.26/src/node.c:72:7: throw: if ‘sord_new_literal’ throws an exception...
lilv-0.24.26/src/node.c:72:7: danger: ‘val’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   70|     case LILV_VALUE_FLOAT:
#   71|       val->node =
#   72|->       sord_new_literal(world->world, world->uris.xsd_decimal, ustr, NULL);
#   73|       break;
#   74|     case LILV_VALUE_BOOL:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
lilv-0.24.26/src/node.c:76:7: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
lilv-0.24.26/src/node.c:51:30: acquire_memory: allocated here
lilv-0.24.26/src/node.c:76:7: throw: if ‘sord_new_literal’ throws an exception...
lilv-0.24.26/src/node.c:76:7: danger: ‘val’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   74|     case LILV_VALUE_BOOL:
#   75|       val->node =
#   76|->       sord_new_literal(world->world, world->uris.xsd_boolean, ustr, NULL);
#   77|       break;
#   78|     case LILV_VALUE_BLOB:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
lilv-0.24.26/src/node.c:80:7: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
lilv-0.24.26/src/node.c:51:30: acquire_memory: allocated here
lilv-0.24.26/src/node.c:80:7: throw: if ‘sord_new_literal’ throws an exception...
lilv-0.24.26/src/node.c:80:7: danger: ‘val’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#   78|     case LILV_VALUE_BLOB:
#   79|       val->node =
#   80|->       sord_new_literal(world->world, world->uris.xsd_base64Binary, ustr, NULL);
#   81|       break;
#   82|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
lilv-0.24.26/src/node.c:107:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
lilv-0.24.26/src/node.c:96:6: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
lilv-0.24.26/src/node.c:104:11: branch_false: ...to here
lilv-0.24.26/src/node.c:106:32: acquire_memory: this call could return NULL
lilv-0.24.26/src/node.c:107:5: danger: ‘result’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  105|     case SORD_URI:
#  106|       result        = (LilvNode*)malloc(sizeof(LilvNode));
#  107|->     result->world = world;
#  108|       result->type  = LILV_VALUE_URI;
#  109|       result->node  = sord_node_copy(node);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
lilv-0.24.26/src/node.c:109:21: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
lilv-0.24.26/src/node.c:96:6: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
lilv-0.24.26/src/node.c:104:11: branch_false: ...to here
lilv-0.24.26/src/node.c:106:32: acquire_memory: allocated here
lilv-0.24.26/src/node.c:109:21: throw: if ‘sord_node_copy’ throws an exception...
lilv-0.24.26/src/node.c:109:21: danger: ‘result’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  107|       result->world = world;
#  108|       result->type  = LILV_VALUE_URI;
#  109|->     result->node  = sord_node_copy(node);
#  110|       break;
#  111|     case SORD_BLANK:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
lilv-0.24.26/src/node.c:113:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
lilv-0.24.26/src/node.c:96:6: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
lilv-0.24.26/src/node.c:104:11: branch_false: ...to here
lilv-0.24.26/src/node.c:112:32: acquire_memory: this call could return NULL
lilv-0.24.26/src/node.c:113:5: danger: ‘result’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  111|     case SORD_BLANK:
#  112|       result        = (LilvNode*)malloc(sizeof(LilvNode));
#  113|->     result->world = world;
#  114|       result->type  = LILV_VALUE_BLANK;
#  115|       result->node  = sord_node_copy(node);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
lilv-0.24.26/src/node.c:115:21: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
lilv-0.24.26/src/node.c:96:6: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
lilv-0.24.26/src/node.c:104:11: branch_false: ...to here
lilv-0.24.26/src/node.c:112:32: acquire_memory: allocated here
lilv-0.24.26/src/node.c:115:21: throw: if ‘sord_node_copy’ throws an exception...
lilv-0.24.26/src/node.c:115:21: danger: ‘result’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
#  113|       result->world = world;
#  114|       result->type  = LILV_VALUE_BLANK;
#  115|->     result->node  = sord_node_copy(node);
#  116|       break;
#  117|     case SORD_LITERAL:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
lilv-0.24.26/src/node.c:220:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
lilv-0.24.26/src/node.c:215:6: branch_false: following ‘false’ branch (when ‘val’ is non-NULL)...
lilv-0.24.26/src/node.c:219:33: branch_false: ...to here
lilv-0.24.26/src/node.c:219:33: acquire_memory: this call could return NULL
lilv-0.24.26/src/node.c:220:3: danger: ‘result’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  218|   
#  219|     LilvNode* result = (LilvNode*)malloc(sizeof(LilvNode));
#  220|->   result->world    = val->world;
#  221|     result->node     = sord_node_copy(val->node);
#  222|     result->val      = val->val;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
lilv-0.24.26/src/node.c:221:22: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
lilv-0.24.26/src/node.c:215:6: branch_false: following ‘false’ branch (when ‘val’ is non-NULL)...
lilv-0.24.26/src/node.c:219:33: branch_false: ...to here
lilv-0.24.26/src/node.c:219:33: acquire_memory: allocated here
lilv-0.24.26/src/node.c:221:22: throw: if ‘sord_node_copy’ throws an exception...
lilv-0.24.26/src/node.c:221:22: danger: ‘result’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  219|     LilvNode* result = (LilvNode*)malloc(sizeof(LilvNode));
#  220|     result->world    = val->world;
#  221|->   result->node     = sord_node_copy(val->node);
#  222|     result->val      = val->val;
#  223|     result->type     = val->type;

Error: CPPCHECK_WARNING (CWE-476): [#def37]
lilv-0.24.26/src/plugin.c:43: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: plugin
#   41|     plugin->loaded       = false;
#   42|     plugin->parse_errors = false;
#   43|->   plugin->replaced     = false;
#   44|   }
#   45|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
lilv-0.24.26/src/plugin.c:261:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*const_plugin.ports’
lilv-0.24.26/src/plugin.c:260:36: acquire_memory: this call could return NULL
lilv-0.24.26/src/plugin.c:261:5: danger: ‘malloc(8)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  259|     if (!plugin->ports) {
#  260|       plugin->ports    = (LilvPort**)malloc(sizeof(LilvPort*));
#  261|->     plugin->ports[0] = NULL;
#  262|   
#  263|       SordIter* ports = lilv_world_query_internal(plugin->world,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
lilv-0.24.26/src/pluginclass.c:20:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pc’
lilv-0.24.26/src/pluginclass.c:19:43: acquire_memory: this call could return NULL
lilv-0.24.26/src/pluginclass.c:20:3: danger: ‘pc’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   18|   {
#   19|     LilvPluginClass* pc = (LilvPluginClass*)malloc(sizeof(LilvPluginClass));
#   20|->   pc->world           = world;
#   21|     pc->uri             = lilv_node_new_from_node(world, uri);
#   22|     pc->label           = lilv_node_new(world, LILV_VALUE_STRING, label);

Error: CPPCHECK_WARNING (CWE-476): [#def40]
lilv-0.24.26/src/pluginclass.c:21: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pc
#   19|     LilvPluginClass* pc = (LilvPluginClass*)malloc(sizeof(LilvPluginClass));
#   20|     pc->world           = world;
#   21|->   pc->uri             = lilv_node_new_from_node(world, uri);
#   22|     pc->label           = lilv_node_new(world, LILV_VALUE_STRING, label);
#   23|     pc->parent_uri =

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
lilv-0.24.26/src/pluginclass.c:21:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pc’
lilv-0.24.26/src/pluginclass.c:19:43: acquire_memory: allocated here
lilv-0.24.26/src/pluginclass.c:21:25: throw: if ‘lilv_node_new_from_node’ throws an exception...
lilv-0.24.26/src/pluginclass.c:21:25: danger: ‘pc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   19|     LilvPluginClass* pc = (LilvPluginClass*)malloc(sizeof(LilvPluginClass));
#   20|     pc->world           = world;
#   21|->   pc->uri             = lilv_node_new_from_node(world, uri);
#   22|     pc->label           = lilv_node_new(world, LILV_VALUE_STRING, label);
#   23|     pc->parent_uri =

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
lilv-0.24.26/src/pluginclass.c:22:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pc’
lilv-0.24.26/src/pluginclass.c:19:43: acquire_memory: allocated here
lilv-0.24.26/src/pluginclass.c:22:25: throw: if ‘lilv_node_new’ throws an exception...
lilv-0.24.26/src/pluginclass.c:22:25: danger: ‘pc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   20|     pc->world           = world;
#   21|     pc->uri             = lilv_node_new_from_node(world, uri);
#   22|->   pc->label           = lilv_node_new(world, LILV_VALUE_STRING, label);
#   23|     pc->parent_uri =
#   24|       (parent_node ? lilv_node_new_from_node(world, parent_node) : NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
lilv-0.24.26/src/pluginclass.c:24:20: warning[-Wanalyzer-malloc-leak]: leak of ‘pc’
lilv-0.24.26/src/pluginclass.c:19:43: acquire_memory: allocated here
lilv-0.24.26/src/pluginclass.c:24:5: branch_true: following ‘true’ branch (when ‘parent_node’ is non-NULL)...
lilv-0.24.26/src/pluginclass.c:24:20: branch_true: ...to here
lilv-0.24.26/src/pluginclass.c:24:20: throw: if ‘lilv_node_new_from_node’ throws an exception...
lilv-0.24.26/src/pluginclass.c:24:20: danger: ‘pc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   22|     pc->label           = lilv_node_new(world, LILV_VALUE_STRING, label);
#   23|     pc->parent_uri =
#   24|->     (parent_node ? lilv_node_new_from_node(world, parent_node) : NULL);
#   25|     return pc;
#   26|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
lilv-0.24.26/src/port.c:26:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘port’
lilv-0.24.26/src/port.c:25:31: acquire_memory: this call could return NULL
lilv-0.24.26/src/port.c:26:3: danger: ‘port’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   24|   {
#   25|     LilvPort* port = (LilvPort*)malloc(sizeof(LilvPort));
#   26|->   port->node     = lilv_node_new_from_node(world, node);
#   27|     port->index    = index;
#   28|     port->symbol   = lilv_node_new(world, LILV_VALUE_STRING, symbol);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
lilv-0.24.26/src/port.c:26:20: warning[-Wanalyzer-malloc-leak]: leak of ‘port’
lilv-0.24.26/src/port.c:25:31: acquire_memory: allocated here
lilv-0.24.26/src/port.c:26:20: throw: if ‘lilv_node_new_from_node’ throws an exception...
lilv-0.24.26/src/port.c:26:20: danger: ‘port’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   24|   {
#   25|     LilvPort* port = (LilvPort*)malloc(sizeof(LilvPort));
#   26|->   port->node     = lilv_node_new_from_node(world, node);
#   27|     port->index    = index;
#   28|     port->symbol   = lilv_node_new(world, LILV_VALUE_STRING, symbol);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
lilv-0.24.26/src/port.c:28:20: warning[-Wanalyzer-malloc-leak]: leak of ‘port’
lilv-0.24.26/src/port.c:25:31: acquire_memory: allocated here
lilv-0.24.26/src/port.c:28:20: throw: if ‘lilv_node_new’ throws an exception...
lilv-0.24.26/src/port.c:28:20: danger: ‘port’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   26|     port->node     = lilv_node_new_from_node(world, node);
#   27|     port->index    = index;
#   28|->   port->symbol   = lilv_node_new(world, LILV_VALUE_STRING, symbol);
#   29|     port->classes  = lilv_nodes_new();
#   30|     return port;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
lilv-0.24.26/src/port.c:29:20: warning[-Wanalyzer-malloc-leak]: leak of ‘port’
lilv-0.24.26/src/port.c:25:31: acquire_memory: allocated here
lilv-0.24.26/src/port.c:29:20: throw: if ‘lilv_nodes_new’ throws an exception...
lilv-0.24.26/src/port.c:29:20: danger: ‘port’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   27|     port->index    = index;
#   28|     port->symbol   = lilv_node_new(world, LILV_VALUE_STRING, symbol);
#   29|->   port->classes  = lilv_nodes_new();
#   30|     return port;
#   31|   }

Error: CPPCHECK_WARNING (CWE-476): [#def48]
lilv-0.24.26/src/scalepoint.c:15: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: point
#   13|   {
#   14|     LilvScalePoint* point = (LilvScalePoint*)malloc(sizeof(LilvScalePoint));
#   15|->   point->value          = value;
#   16|     point->label          = label;
#   17|     return point;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
lilv-0.24.26/src/scalepoint.c:15:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘point’
lilv-0.24.26/src/scalepoint.c:14:44: acquire_memory: this call could return NULL
lilv-0.24.26/src/scalepoint.c:15:3: danger: ‘point’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   13|   {
#   14|     LilvScalePoint* point = (LilvScalePoint*)malloc(sizeof(LilvScalePoint));
#   15|->   point->value          = value;
#   16|     point->label          = label;
#   17|     return point;

Error: CPPCHECK_WARNING (CWE-476): [#def50]
lilv-0.24.26/src/scalepoint.c:16: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: point
#   14|     LilvScalePoint* point = (LilvScalePoint*)malloc(sizeof(LilvScalePoint));
#   15|     point->value          = value;
#   16|->   point->label          = label;
#   17|     return point;
#   18|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
lilv-0.24.26/src/state.c:134:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pv’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:488:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:489:36: branch_true: ...to here
lilv-0.24.26/src/state.c:490:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:491:11: branch_true: ...to here
lilv-0.24.26/src/state.c:490:11: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:492:21: branch_true: ...to here
lilv-0.24.26/src/state.c:496:9: call_function: calling ‘append_port_value’ from ‘lilv_state_new_from_instance’
#  132|   
#  133|       pv             = &state->values[state->n_values - 1];
#  134|->     pv->symbol     = lilv_strdup(port_symbol);
#  135|       pv->atom       = (LV2_Atom*)malloc(sizeof(LV2_Atom) + size);
#  136|       pv->atom->size = size;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
lilv-0.24.26/src/state.c:134:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:488:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:489:36: branch_true: ...to here
lilv-0.24.26/src/state.c:490:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:491:11: branch_true: ...to here
lilv-0.24.26/src/state.c:490:11: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:492:21: branch_true: ...to here
lilv-0.24.26/src/state.c:496:9: call_function: calling ‘append_port_value’ from ‘lilv_state_new_from_instance’
#  132|   
#  133|       pv             = &state->values[state->n_values - 1];
#  134|->     pv->symbol     = lilv_strdup(port_symbol);
#  135|       pv->atom       = (LV2_Atom*)malloc(sizeof(LV2_Atom) + size);
#  136|       pv->atom->size = size;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
lilv-0.24.26/src/state.c:134:22: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:488:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:489:36: branch_true: ...to here
lilv-0.24.26/src/state.c:490:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:491:11: branch_true: ...to here
lilv-0.24.26/src/state.c:490:11: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:492:21: branch_true: ...to here
lilv-0.24.26/src/state.c:496:9: call_function: calling ‘append_port_value’ from ‘lilv_state_new_from_instance’
#  132|   
#  133|       pv             = &state->values[state->n_values - 1];
#  134|->     pv->symbol     = lilv_strdup(port_symbol);
#  135|       pv->atom       = (LV2_Atom*)malloc(sizeof(LV2_Atom) + size);
#  136|       pv->atom->size = size;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
lilv-0.24.26/src/state.c:136:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)size + 8)’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:488:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:489:36: branch_true: ...to here
lilv-0.24.26/src/state.c:490:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:491:11: branch_true: ...to here
lilv-0.24.26/src/state.c:490:11: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:492:21: branch_true: ...to here
lilv-0.24.26/src/state.c:496:9: call_function: calling ‘append_port_value’ from ‘lilv_state_new_from_instance’
#  134|       pv->symbol     = lilv_strdup(port_symbol);
#  135|       pv->atom       = (LV2_Atom*)malloc(sizeof(LV2_Atom) + size);
#  136|->     pv->atom->size = size;
#  137|       pv->atom->type = type;
#  138|       memcpy(pv->atom + 1, value, size);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def55]
lilv-0.24.26/src/state.c:169:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(size)’ where non-null expected
lilv-0.24.26/src/state.c:1588:1: enter_function: entry to ‘lilv_state_set_metadata’
lilv-0.24.26/src/state.c:1595:3: call_function: calling ‘append_property’ from ‘lilv_state_set_metadata’
#  167|     if ((flags & LV2_STATE_IS_POD) || type == state->atom_Path) {
#  168|       prop->value = malloc(size);
#  169|->     memcpy(prop->value, value, size);
#  170|     } else {
#  171|       prop->value = (void*)value;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
lilv-0.24.26/src/state.c:379:30: warning[-Wanalyzer-malloc-leak]: leak of ‘add_features(features, & map_feature, 0, & free_feature)’
lilv-0.24.26/src/state.c:544:1: enter_function: entry to ‘lilv_state_restore’
lilv-0.24.26/src/state.c:551:6: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
lilv-0.24.26/src/state.c:556:22: branch_false: ...to here
lilv-0.24.26/src/state.c:563:6: branch_true: following ‘true’ branch (when ‘instance’ is non-NULL)...
lilv-0.24.26/src/state.c:564:27: branch_true: ...to here
lilv-0.24.26/src/state.c:565:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:567:37: branch_true: ...to here
lilv-0.24.26/src/state.c:569:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:571:11: call_function: calling ‘add_features’ from ‘lilv_state_restore’
lilv-0.24.26/src/state.c:571:11: return_function: returning to ‘lilv_state_restore’ from ‘add_features’
lilv-0.24.26/src/state.c:573:9: throw: if the called function throws an exception...
lilv-0.24.26/src/state.c:379:30: danger: ‘add_features(features, & map_feature, 0, & free_feature)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/17)
#  377|   {
#  378|     size_t n_features = 0;
#  379|->   for (; features && features[n_features]; ++n_features) {
#  380|       if (!strcmp(features[n_features]->URI, LV2_STATE__mapPath)) {
#  381|         map = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
lilv-0.24.26/src/state.c:379:30: warning[-Wanalyzer-malloc-leak]: leak of ‘add_features(features, & pmap_feature,  <unknown>, & pfree_feature)’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:486:33: throw: if ‘lilv_new_uri’ throws an exception...
lilv-0.24.26/src/state.c:379:30: danger: ‘add_features(features, & pmap_feature,  <unknown>, & pfree_feature)’ leaks here; was allocated at [(52)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/51)
#  377|   {
#  378|     size_t n_features = 0;
#  379|->   for (; features && features[n_features]; ++n_features) {
#  380|       if (!strcmp(features[n_features]->URI, LV2_STATE__mapPath)) {
#  381|         map = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
lilv-0.24.26/src/state.c:392:26: warning[-Wanalyzer-malloc-leak]: leak of ‘add_features(features, & map_feature, 0, & free_feature)’
lilv-0.24.26/src/state.c:544:1: enter_function: entry to ‘lilv_state_restore’
lilv-0.24.26/src/state.c:551:6: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
lilv-0.24.26/src/state.c:556:22: branch_false: ...to here
lilv-0.24.26/src/state.c:563:6: branch_true: following ‘true’ branch (when ‘instance’ is non-NULL)...
lilv-0.24.26/src/state.c:564:27: branch_true: ...to here
lilv-0.24.26/src/state.c:565:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:567:37: branch_true: ...to here
lilv-0.24.26/src/state.c:569:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:571:11: call_function: calling ‘add_features’ from ‘lilv_state_restore’
lilv-0.24.26/src/state.c:571:11: return_function: returning to ‘lilv_state_restore’ from ‘add_features’
lilv-0.24.26/src/state.c:573:9: throw: if the called function throws an exception...
lilv-0.24.26/src/state.c:392:26: danger: ‘add_features(features, & map_feature, 0, & free_feature)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/11)
#  390|   
#  391|     const LV2_Feature** ret =
#  392|->     (const LV2_Feature**)calloc(n_features + 4, sizeof(LV2_Feature*));
#  393|   
#  394|     if (features) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
lilv-0.24.26/src/state.c:392:26: warning[-Wanalyzer-malloc-leak]: leak of ‘add_features(features, & pmap_feature,  <unknown>, & pfree_feature)’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:486:33: throw: if ‘lilv_new_uri’ throws an exception...
lilv-0.24.26/src/state.c:392:26: danger: ‘add_features(features, & pmap_feature,  <unknown>, & pfree_feature)’ leaks here; was allocated at [(46)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/45)
#  390|   
#  391|     const LV2_Feature** ret =
#  392|->     (const LV2_Feature**)calloc(n_features + 4, sizeof(LV2_Feature*));
#  393|   
#  394|     if (features) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def60]
lilv-0.24.26/src/state.c:395:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
lilv-0.24.26/src/state.c:544:1: enter_function: entry to ‘lilv_state_restore’
lilv-0.24.26/src/state.c:551:6: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
lilv-0.24.26/src/state.c:556:22: branch_false: ...to here
lilv-0.24.26/src/state.c:563:6: branch_true: following ‘true’ branch (when ‘instance’ is non-NULL)...
lilv-0.24.26/src/state.c:564:27: branch_true: ...to here
lilv-0.24.26/src/state.c:565:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:567:37: branch_true: ...to here
lilv-0.24.26/src/state.c:569:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:571:11: call_function: calling ‘add_features’ from ‘lilv_state_restore’
#  393|   
#  394|     if (features) {
#  395|->     memcpy(ret, features, n_features * sizeof(LV2_Feature*));
#  396|     }
#  397|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
lilv-0.24.26/src/state.c:400:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
lilv-0.24.26/src/state.c:544:1: enter_function: entry to ‘lilv_state_restore’
lilv-0.24.26/src/state.c:551:6: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
lilv-0.24.26/src/state.c:556:22: branch_false: ...to here
lilv-0.24.26/src/state.c:563:6: branch_true: following ‘true’ branch (when ‘instance’ is non-NULL)...
lilv-0.24.26/src/state.c:564:27: branch_true: ...to here
lilv-0.24.26/src/state.c:565:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:567:37: branch_true: ...to here
lilv-0.24.26/src/state.c:569:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:571:11: call_function: calling ‘add_features’ from ‘lilv_state_restore’
#  398|     size_t i = n_features;
#  399|     if (map) {
#  400|->     ret[i++] = map;
#  401|     }
#  402|     if (make) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
lilv-0.24.26/src/state.c:416:29: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
#  414|   normal_dir(const char* path)
#  415|   {
#  416|->   char* const normal_path = zix_path_lexically_normal(NULL, path);
#  417|     char* const base_path   = zix_path_join(NULL, normal_path, NULL);
#  418|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
lilv-0.24.26/src/state.c:417:29: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
#  415|   {
#  416|     char* const normal_path = zix_path_lexically_normal(NULL, path);
#  417|->   char* const base_path   = zix_path_join(NULL, normal_path, NULL);
#  418|   
#  419|     zix_free(NULL, normal_path);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
lilv-0.24.26/src/state.c:466:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
lilv-0.24.26/src/state.c:465:47: acquire_memory: this call could return NULL
lilv-0.24.26/src/state.c:466:3: danger: ‘state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  464|     LilvWorld* const    world     = plugin->world;
#  465|     LilvState* const    state     = (LilvState*)calloc(1, sizeof(LilvState));
#  466|->   state->plugin_uri  = lilv_node_duplicate(lilv_plugin_get_uri(plugin));
#  467|     state->abs2rel     = zix_tree_new(NULL, false, abs_cmp, NULL, map_free, NULL);
#  468|     state->rel2abs     = zix_tree_new(NULL, false, rel_cmp, NULL, NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
lilv-0.24.26/src/state.c:466:24: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:466:24: throw: if ‘lilv_plugin_get_uri’ throws an exception...
lilv-0.24.26/src/state.c:466:24: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  464|     LilvWorld* const    world     = plugin->world;
#  465|     LilvState* const    state     = (LilvState*)calloc(1, sizeof(LilvState));
#  466|->   state->plugin_uri  = lilv_node_duplicate(lilv_plugin_get_uri(plugin));
#  467|     state->abs2rel     = zix_tree_new(NULL, false, abs_cmp, NULL, map_free, NULL);
#  468|     state->rel2abs     = zix_tree_new(NULL, false, rel_cmp, NULL, NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
lilv-0.24.26/src/state.c:467:24: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:467:24: throw: if ‘zix_tree_new’ throws an exception...
lilv-0.24.26/src/state.c:467:24: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  465|     LilvState* const    state     = (LilvState*)calloc(1, sizeof(LilvState));
#  466|     state->plugin_uri  = lilv_node_duplicate(lilv_plugin_get_uri(plugin));
#  467|->   state->abs2rel     = zix_tree_new(NULL, false, abs_cmp, NULL, map_free, NULL);
#  468|     state->rel2abs     = zix_tree_new(NULL, false, rel_cmp, NULL, NULL, NULL);
#  469|     state->scratch_dir = scratch_dir ? normal_dir(scratch_dir) : NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
lilv-0.24.26/src/state.c:468:24: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:468:24: throw: if ‘zix_tree_new’ throws an exception...
lilv-0.24.26/src/state.c:468:24: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  466|     state->plugin_uri  = lilv_node_duplicate(lilv_plugin_get_uri(plugin));
#  467|     state->abs2rel     = zix_tree_new(NULL, false, abs_cmp, NULL, map_free, NULL);
#  468|->   state->rel2abs     = zix_tree_new(NULL, false, rel_cmp, NULL, NULL, NULL);
#  469|     state->scratch_dir = scratch_dir ? normal_dir(scratch_dir) : NULL;
#  470|     state->copy_dir    = copy_dir ? normal_dir(copy_dir) : NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
lilv-0.24.26/src/state.c:473:24: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_false: following ‘false’ branch (when ‘scratch_dir’ is NULL)...
lilv-0.24.26/src/state.c:469:3: branch_false: ...to here
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_false: following ‘false’ branch (when ‘save_dir’ is NULL)...
lilv-0.24.26/src/state.c:472:3: branch_false: ...to here
lilv-0.24.26/src/state.c:473:24: throw: if the called function throws an exception...
lilv-0.24.26/src/state.c:473:24: danger: ‘state’ leaks here; was allocated at [(2)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/1)
#  471|     state->link_dir    = link_dir ? normal_dir(link_dir) : NULL;
#  472|     state->dir         = save_dir ? normal_dir(save_dir) : NULL;
#  473|->   state->atom_Path   = map->map(map->handle, LV2_ATOM__Path);
#  474|   
#  475|     LV2_State_Map_Path  pmap          = {state, abstract_path, absolute_path};

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
lilv-0.24.26/src/state.c:486:33: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:486:33: throw: if ‘lilv_new_uri’ throws an exception...
lilv-0.24.26/src/state.c:486:33: danger: ‘state’ leaks here; was allocated at [(2)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/1)
#  484|     // Store port values
#  485|     if (get_value) {
#  486|->     LilvNode* lv2_ControlPort = lilv_new_uri(world, LILV_URI_CONTROL_PORT);
#  487|       LilvNode* lv2_InputPort   = lilv_new_uri(world, LILV_URI_INPUT_PORT);
#  488|       for (uint32_t i = 0; i < plugin->num_ports; ++i) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
lilv-0.24.26/src/state.c:487:33: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:487:33: throw: if ‘lilv_new_uri’ throws an exception...
lilv-0.24.26/src/state.c:487:33: danger: ‘state’ leaks here; was allocated at [(2)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/1)
#  485|     if (get_value) {
#  486|       LilvNode* lv2_ControlPort = lilv_new_uri(world, LILV_URI_CONTROL_PORT);
#  487|->     LilvNode* lv2_InputPort   = lilv_new_uri(world, LILV_URI_INPUT_PORT);
#  488|       for (uint32_t i = 0; i < plugin->num_ports; ++i) {
#  489|         const LilvPort* const port = plugin->ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
lilv-0.24.26/src/state.c:490:11: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:488:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:489:36: branch_true: ...to here
lilv-0.24.26/src/state.c:490:11: throw: if ‘lilv_port_is_a’ throws an exception...
lilv-0.24.26/src/state.c:490:11: danger: ‘state’ leaks here; was allocated at [(2)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/1)
#  488|       for (uint32_t i = 0; i < plugin->num_ports; ++i) {
#  489|         const LilvPort* const port = plugin->ports[i];
#  490|->       if (lilv_port_is_a(plugin, port, lv2_ControlPort) &&
#  491|             lilv_port_is_a(plugin, port, lv2_InputPort)) {
#  492|           uint32_t    size  = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
lilv-0.24.26/src/state.c:491:11: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:488:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:489:36: branch_true: ...to here
lilv-0.24.26/src/state.c:490:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:491:11: branch_true: ...to here
lilv-0.24.26/src/state.c:491:11: throw: if ‘lilv_port_is_a’ throws an exception...
lilv-0.24.26/src/state.c:491:11: danger: ‘state’ leaks here; was allocated at [(2)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/1)
#  489|         const LilvPort* const port = plugin->ports[i];
#  490|         if (lilv_port_is_a(plugin, port, lv2_ControlPort) &&
#  491|->           lilv_port_is_a(plugin, port, lv2_InputPort)) {
#  492|           uint32_t    size  = 0;
#  493|           uint32_t    type  = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
lilv-0.24.26/src/state.c:494:29: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:488:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:489:36: branch_true: ...to here
lilv-0.24.26/src/state.c:490:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:491:11: branch_true: ...to here
lilv-0.24.26/src/state.c:490:11: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:492:21: branch_true: ...to here
lilv-0.24.26/src/state.c:494:29: throw: if ‘lilv_node_as_string’ throws an exception...
lilv-0.24.26/src/state.c:494:29: danger: ‘state’ leaks here; was allocated at [(2)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/1)
#  492|           uint32_t    size  = 0;
#  493|           uint32_t    type  = 0;
#  494|->         const char* sym   = lilv_node_as_string(port->symbol);
#  495|           const void* value = get_value(sym, user_data, &size, &type);
#  496|           append_port_value(state, sym, value, size, type);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
lilv-0.24.26/src/state.c:495:29: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:451:1: enter_function: entry to ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:465:47: acquire_memory: allocated here
lilv-0.24.26/src/state.c:469:24: branch_true: following ‘true’ branch (when ‘scratch_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:469:38: branch_true: ...to here
lilv-0.24.26/src/state.c:469:38: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:469:38: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:470:24: branch_true: following ‘true’ branch (when ‘copy_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:470:35: branch_true: ...to here
lilv-0.24.26/src/state.c:470:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:470:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:471:24: branch_true: following ‘true’ branch (when ‘link_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:471:35: branch_true: ...to here
lilv-0.24.26/src/state.c:471:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:471:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:472:24: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:472:35: branch_true: ...to here
lilv-0.24.26/src/state.c:472:35: call_function: calling ‘normal_dir’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:472:35: return_function: returning to ‘lilv_state_new_from_instance’ from ‘normal_dir’
lilv-0.24.26/src/state.c:481:26: branch_true: following ‘true’ branch (when ‘save_dir’ is non-NULL)...
lilv-0.24.26/src/state.c:481:26: branch_true: ...to here
lilv-0.24.26/src/state.c:481:26: call_function: calling ‘add_features’ from ‘lilv_state_new_from_instance’
lilv-0.24.26/src/state.c:481:26: return_function: returning to ‘lilv_state_new_from_instance’ from ‘add_features’
lilv-0.24.26/src/state.c:485:6: branch_true: following ‘true’ branch (when ‘get_value’ is non-NULL)...
lilv-0.24.26/src/state.c:486:33: branch_true: ...to here
lilv-0.24.26/src/state.c:488:26: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:489:36: branch_true: ...to here
lilv-0.24.26/src/state.c:490:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:491:11: branch_true: ...to here
lilv-0.24.26/src/state.c:490:11: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:492:21: branch_true: ...to here
lilv-0.24.26/src/state.c:495:29: throw: if the called function throws an exception...
lilv-0.24.26/src/state.c:495:29: danger: ‘state’ leaks here; was allocated at [(2)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/1)
#  493|           uint32_t    type  = 0;
#  494|           const char* sym   = lilv_node_as_string(port->symbol);
#  495|->         const void* value = get_value(sym, user_data, &size, &type);
#  496|           append_port_value(state, sym, value, size, type);
#  497|         }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
lilv-0.24.26/src/state.c:593:37: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:603:1: enter_function: entry to ‘new_state_from_model’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:623:30: branch_true: ...to here
lilv-0.24.26/src/state.c:626:5: call_function: calling ‘set_state_dir_from_model’ from ‘new_state_from_model’
#  591|   {
#  592|     if (!state->dir && graph) {
#  593|->     const char* uri  = (const char*)sord_node_get_string(graph);
#  594|       char*       path = lilv_file_uri_parse(uri, NULL);
#  595|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
lilv-0.24.26/src/state.c:594:24: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:603:1: enter_function: entry to ‘new_state_from_model’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:623:30: branch_true: ...to here
lilv-0.24.26/src/state.c:626:5: call_function: calling ‘set_state_dir_from_model’ from ‘new_state_from_model’
#  592|     if (!state->dir && graph) {
#  593|       const char* uri  = (const char*)sord_node_get_string(graph);
#  594|->     char*       path = lilv_file_uri_parse(uri, NULL);
#  595|   
#  596|       state->dir = zix_path_join(NULL, path, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
lilv-0.24.26/src/state.c:596:18: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:603:1: enter_function: entry to ‘new_state_from_model’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:623:30: branch_true: ...to here
lilv-0.24.26/src/state.c:626:5: call_function: calling ‘set_state_dir_from_model’ from ‘new_state_from_model’
#  594|       char*       path = lilv_file_uri_parse(uri, NULL);
#  595|   
#  596|->     state->dir = zix_path_join(NULL, path, NULL);
#  597|       free(path);
#  598|     }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
lilv-0.24.26/src/state.c:616:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: this call could return NULL
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:616:3: danger: ‘state’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
#  614|     // Allocate state
#  615|     LilvState* const state = (LilvState*)calloc(1, sizeof(LilvState));
#  616|->   state->dir             = dir ? zix_path_join(NULL, dir, NULL) : NULL;
#  617|     state->atom_Path       = map->map(map->handle, LV2_ATOM__Path);
#  618|     state->uri             = lilv_node_new_from_node(world, node);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
lilv-0.24.26/src/state.c:616:34: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_true: following ‘true’ branch (when ‘dir’ is non-NULL)...
lilv-0.24.26/src/state.c:616:34: branch_true: ...to here
lilv-0.24.26/src/state.c:616:34: throw: if ‘zix_path_join’ throws an exception...
lilv-0.24.26/src/state.c:616:34: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/2)
#  614|     // Allocate state
#  615|     LilvState* const state = (LilvState*)calloc(1, sizeof(LilvState));
#  616|->   state->dir             = dir ? zix_path_join(NULL, dir, NULL) : NULL;
#  617|     state->atom_Path       = map->map(map->handle, LV2_ATOM__Path);
#  618|     state->uri             = lilv_node_new_from_node(world, node);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
lilv-0.24.26/src/state.c:617:28: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:617:28: throw: if the called function throws an exception...
lilv-0.24.26/src/state.c:617:28: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
#  615|     LilvState* const state = (LilvState*)calloc(1, sizeof(LilvState));
#  616|     state->dir             = dir ? zix_path_join(NULL, dir, NULL) : NULL;
#  617|->   state->atom_Path       = map->map(map->handle, LV2_ATOM__Path);
#  618|     state->uri             = lilv_node_new_from_node(world, node);
#  619|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
lilv-0.24.26/src/state.c:618:28: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:618:28: throw: if ‘lilv_node_new_from_node’ throws an exception...
lilv-0.24.26/src/state.c:618:28: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/2)
#  616|     state->dir             = dir ? zix_path_join(NULL, dir, NULL) : NULL;
#  617|     state->atom_Path       = map->map(map->handle, LV2_ATOM__Path);
#  618|->   state->uri             = lilv_node_new_from_node(world, node);
#  619|   
#  620|     // Get the plugin URI this state applies to

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
lilv-0.24.26/src/state.c:621:17: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:621:17: throw: if ‘sord_search’ throws an exception...
lilv-0.24.26/src/state.c:621:17: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
#  619|   
#  620|     // Get the plugin URI this state applies to
#  621|->   SordIter* i = sord_search(model, node, world->uris.lv2_appliesTo, 0, 0);
#  622|     if (i) {
#  623|       const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
lilv-0.24.26/src/state.c:623:30: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:623:30: branch_true: ...to here
lilv-0.24.26/src/state.c:623:30: throw: if ‘sord_iter_get_node’ throws an exception...
lilv-0.24.26/src/state.c:623:30: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
#  621|     SordIter* i = sord_search(model, node, world->uris.lv2_appliesTo, 0, 0);
#  622|     if (i) {
#  623|->     const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
#  624|       const SordNode* graph  = sord_iter_get_node(i, SORD_GRAPH);
#  625|       state->plugin_uri      = lilv_node_new_from_node(world, object);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
lilv-0.24.26/src/state.c:624:30: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:623:30: branch_true: ...to here
lilv-0.24.26/src/state.c:624:30: throw: if ‘sord_iter_get_node’ throws an exception...
lilv-0.24.26/src/state.c:624:30: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
#  622|     if (i) {
#  623|       const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
#  624|->     const SordNode* graph  = sord_iter_get_node(i, SORD_GRAPH);
#  625|       state->plugin_uri      = lilv_node_new_from_node(world, object);
#  626|       set_state_dir_from_model(state, graph);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
lilv-0.24.26/src/state.c:625:30: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:623:30: branch_true: ...to here
lilv-0.24.26/src/state.c:625:30: throw: if ‘lilv_node_new_from_node’ throws an exception...
lilv-0.24.26/src/state.c:625:30: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
#  623|       const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
#  624|       const SordNode* graph  = sord_iter_get_node(i, SORD_GRAPH);
#  625|->     state->plugin_uri      = lilv_node_new_from_node(world, object);
#  626|       set_state_dir_from_model(state, graph);
#  627|       sord_iter_free(i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
lilv-0.24.26/src/state.c:627:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_true: following ‘true’ branch (when ‘dir’ is non-NULL)...
lilv-0.24.26/src/state.c:616:34: branch_true: ...to here
lilv-0.24.26/src/state.c:622:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:623:30: branch_true: ...to here
lilv-0.24.26/src/state.c:627:5: throw: if ‘sord_iter_free’ throws an exception...
lilv-0.24.26/src/state.c:627:5: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
#  625|       state->plugin_uri      = lilv_node_new_from_node(world, object);
#  626|       set_state_dir_from_model(state, graph);
#  627|->     sord_iter_free(i);
#  628|     } else if (sord_ask(
#  629|                  model, node, world->uris.rdf_a, world->uris.lv2_Plugin, 0)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
lilv-0.24.26/src/state.c:628:14: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:629:48: branch_false: ...to here
lilv-0.24.26/src/state.c:628:14: throw: if ‘sord_ask’ throws an exception...
lilv-0.24.26/src/state.c:628:14: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
#  626|       set_state_dir_from_model(state, graph);
#  627|       sord_iter_free(i);
#  628|->   } else if (sord_ask(
#  629|                  model, node, world->uris.rdf_a, world->uris.lv2_Plugin, 0)) {
#  630|       // Loading plugin description as state (default state)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
lilv-0.24.26/src/state.c:631:25: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:629:48: branch_false: ...to here
lilv-0.24.26/src/state.c:628:13: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:631:25: branch_true: ...to here
lilv-0.24.26/src/state.c:631:25: throw: if ‘lilv_node_new_from_node’ throws an exception...
lilv-0.24.26/src/state.c:631:25: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
#  629|                  model, node, world->uris.rdf_a, world->uris.lv2_Plugin, 0)) {
#  630|       // Loading plugin description as state (default state)
#  631|->     state->plugin_uri = lilv_node_new_from_node(world, node);
#  632|     } else {
#  633|       LILV_ERRORF("State %s missing lv2:appliesTo property\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
lilv-0.24.26/src/state.c:633:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:622:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:629:48: branch_false: ...to here
lilv-0.24.26/src/state.c:628:13: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:633:5: branch_false: ...to here
lilv-0.24.26/src/state.c:633:5: throw: if ‘sord_node_get_string’ throws an exception...
lilv-0.24.26/src/state.c:633:5: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
#  631|       state->plugin_uri = lilv_node_new_from_node(world, node);
#  632|     } else {
#  633|->     LILV_ERRORF("State %s missing lv2:appliesTo property\n",
#  634|                   sord_node_get_string(node));
#  635|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
lilv-0.24.26/src/state.c:638:7: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:628:13: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:631:25: branch_true: ...to here
lilv-0.24.26/src/state.c:638:7: throw: if ‘sord_search’ throws an exception...
lilv-0.24.26/src/state.c:638:7: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
#  636|   
#  637|     // Get the state label
#  638|->   i = sord_search(model, node, world->uris.rdfs_label, NULL, NULL);
#  639|     if (i) {
#  640|       const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
lilv-0.24.26/src/state.c:640:30: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:628:13: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:631:25: branch_true: ...to here
lilv-0.24.26/src/state.c:639:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:640:30: branch_true: ...to here
lilv-0.24.26/src/state.c:640:30: throw: if ‘sord_iter_get_node’ throws an exception...
lilv-0.24.26/src/state.c:640:30: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/2)
#  638|     i = sord_search(model, node, world->uris.rdfs_label, NULL, NULL);
#  639|     if (i) {
#  640|->     const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
#  641|       const SordNode* graph  = sord_iter_get_node(i, SORD_GRAPH);
#  642|       state->label = lilv_strdup((const char*)sord_node_get_string(object));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
lilv-0.24.26/src/state.c:641:30: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:628:13: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:631:25: branch_true: ...to here
lilv-0.24.26/src/state.c:639:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:640:30: branch_true: ...to here
lilv-0.24.26/src/state.c:641:30: throw: if ‘sord_iter_get_node’ throws an exception...
lilv-0.24.26/src/state.c:641:30: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/2)
#  639|     if (i) {
#  640|       const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
#  641|->     const SordNode* graph  = sord_iter_get_node(i, SORD_GRAPH);
#  642|       state->label = lilv_strdup((const char*)sord_node_get_string(object));
#  643|       set_state_dir_from_model(state, graph);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
lilv-0.24.26/src/state.c:642:20: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:628:13: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:631:25: branch_true: ...to here
lilv-0.24.26/src/state.c:639:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:640:30: branch_true: ...to here
lilv-0.24.26/src/state.c:642:20: throw: if ‘lilv_strdup’ throws an exception...
lilv-0.24.26/src/state.c:642:20: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/2)
#  640|       const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
#  641|       const SordNode* graph  = sord_iter_get_node(i, SORD_GRAPH);
#  642|->     state->label = lilv_strdup((const char*)sord_node_get_string(object));
#  643|       set_state_dir_from_model(state, graph);
#  644|       sord_iter_free(i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
lilv-0.24.26/src/state.c:642:45: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_false: following ‘false’ branch (when ‘dir’ is NULL)...
lilv-0.24.26/src/state.c:616:3: branch_false: ...to here
lilv-0.24.26/src/state.c:628:13: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:631:25: branch_true: ...to here
lilv-0.24.26/src/state.c:639:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:640:30: branch_true: ...to here
lilv-0.24.26/src/state.c:642:45: throw: if ‘sord_node_get_string’ throws an exception...
lilv-0.24.26/src/state.c:642:45: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/2)
#  640|       const SordNode* object = sord_iter_get_node(i, SORD_OBJECT);
#  641|       const SordNode* graph  = sord_iter_get_node(i, SORD_GRAPH);
#  642|->     state->label = lilv_strdup((const char*)sord_node_get_string(object));
#  643|       set_state_dir_from_model(state, graph);
#  644|       sord_iter_free(i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
lilv-0.24.26/src/state.c:644:5: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_true: following ‘true’ branch (when ‘dir’ is non-NULL)...
lilv-0.24.26/src/state.c:616:34: branch_true: ...to here
lilv-0.24.26/src/state.c:628:13: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:631:25: branch_true: ...to here
lilv-0.24.26/src/state.c:639:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:640:30: branch_true: ...to here
lilv-0.24.26/src/state.c:644:5: throw: if ‘sord_iter_free’ throws an exception...
lilv-0.24.26/src/state.c:644:5: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/2)
#  642|       state->label = lilv_strdup((const char*)sord_node_get_string(object));
#  643|       set_state_dir_from_model(state, graph);
#  644|->     sord_iter_free(i);
#  645|     }
#  646|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
lilv-0.24.26/src/state.c:647:27: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
lilv-0.24.26/src/state.c:610:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:615:40: branch_true: ...to here
lilv-0.24.26/src/state.c:615:40: acquire_memory: allocated here
lilv-0.24.26/src/state.c:616:28: branch_true: following ‘true’ branch (when ‘dir’ is non-NULL)...
lilv-0.24.26/src/state.c:616:34: branch_true: ...to here
lilv-0.24.26/src/state.c:628:13: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:631:25: branch_true: ...to here
lilv-0.24.26/src/state.c:639:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:647:27: branch_false: ...to here
lilv-0.24.26/src/state.c:647:27: throw: if ‘sratom_new’ throws an exception...
lilv-0.24.26/src/state.c:647:27: danger: ‘state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/2)
#  645|     }
#  646|   
#  647|->   Sratom*        sratom = sratom_new(map);
#  648|     SerdChunk      chunk  = {NULL, 0};
#  649|     LV2_Atom_Forge forge;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def97]
lilv-0.24.26/src/state.c:852:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(manifest_path, "wb")’
lilv-0.24.26/src/state.c:949:1: enter_function: entry to ‘add_state_to_manifest’
lilv-0.24.26/src/state.c:1019:15: acquire_resource: opened here
lilv-0.24.26/src/state.c:1021:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:1026:26: branch_false: ...to here
lilv-0.24.26/src/state.c:1026:26: call_function: calling ‘ttl_file_writer’ from ‘add_state_to_manifest’
#  850|   {
#  851|     SerdURI base_uri = SERD_URI_NULL;
#  852|->   if (base && base->buf) {
#  853|       serd_uri_parse((const uint8_t*)base->buf, &base_uri);
#  854|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
lilv-0.24.26/src/state.c:852:15: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(serd_file_uri_parse(*file_uri.buf, 0), "w")’
lilv-0.24.26/src/state.c:923:1: enter_function: entry to ‘write_manifest’
lilv-0.24.26/src/state.c:933:21: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:933:28: branch_true: ...to here
lilv-0.24.26/src/state.c:933:28: acquire_resource: opened here
lilv-0.24.26/src/state.c:934:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:940:24: branch_false: ...to here
lilv-0.24.26/src/state.c:940:24: call_function: calling ‘ttl_file_writer’ from ‘write_manifest’
#  850|   {
#  851|     SerdURI base_uri = SERD_URI_NULL;
#  852|->   if (base && base->buf) {
#  853|       serd_uri_parse((const uint8_t*)base->buf, &base_uri);
#  854|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
lilv-0.24.26/src/state.c:852:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(manifest_path, "wb")’
lilv-0.24.26/src/state.c:949:1: enter_function: entry to ‘add_state_to_manifest’
lilv-0.24.26/src/state.c:1019:15: acquire_memory: allocated here
lilv-0.24.26/src/state.c:1021:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:1026:26: branch_false: ...to here
lilv-0.24.26/src/state.c:1026:26: call_function: calling ‘ttl_file_writer’ from ‘add_state_to_manifest’
#  850|   {
#  851|     SerdURI base_uri = SERD_URI_NULL;
#  852|->   if (base && base->buf) {
#  853|       serd_uri_parse((const uint8_t*)base->buf, &base_uri);
#  854|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
lilv-0.24.26/src/state.c:852:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(serd_file_uri_parse(*file_uri.buf, 0), "w")’
lilv-0.24.26/src/state.c:923:1: enter_function: entry to ‘write_manifest’
lilv-0.24.26/src/state.c:933:21: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:933:28: branch_true: ...to here
lilv-0.24.26/src/state.c:933:28: acquire_memory: allocated here
lilv-0.24.26/src/state.c:934:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:940:24: branch_false: ...to here
lilv-0.24.26/src/state.c:940:24: call_function: calling ‘ttl_file_writer’ from ‘write_manifest’
#  850|   {
#  851|     SerdURI base_uri = SERD_URI_NULL;
#  852|->   if (base && base->buf) {
#  853|       serd_uri_parse((const uint8_t*)base->buf, &base_uri);
#  854|     }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
lilv-0.24.26/src/state.c:1225:40: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(zix_path_join(0, zix_canonical_path(0, dir), filename), "w")’
lilv-0.24.26/src/state.c:1269:1: enter_function: entry to ‘lilv_state_save’
lilv-0.24.26/src/state.c:1277:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:1282:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:1286:22: branch_false: ...to here
lilv-0.24.26/src/state.c:1287:22: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:1287:29: branch_true: ...to here
lilv-0.24.26/src/state.c:1287:29: acquire_resource: opened here
lilv-0.24.26/src/state.c:1288:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:1296:3: branch_false: ...to here
lilv-0.24.26/src/state.c:1296:3: call_function: calling ‘lilv_state_make_links’ from ‘lilv_state_save’
# 1223|   {
# 1224|     // Create symlinks to files
# 1225|->   for (ZixTreeIter* i = zix_tree_begin(state->abs2rel);
# 1226|          i != zix_tree_end(state->abs2rel);
# 1227|          i = zix_tree_iter_next(i)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
lilv-0.24.26/src/state.c:1225:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(zix_path_join(0, zix_canonical_path(0, dir), filename), "w")’
lilv-0.24.26/src/state.c:1269:1: enter_function: entry to ‘lilv_state_save’
lilv-0.24.26/src/state.c:1277:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:1282:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:1286:22: branch_false: ...to here
lilv-0.24.26/src/state.c:1287:22: branch_true: following ‘true’ branch...
lilv-0.24.26/src/state.c:1287:29: branch_true: ...to here
lilv-0.24.26/src/state.c:1287:29: acquire_memory: allocated here
lilv-0.24.26/src/state.c:1288:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/state.c:1296:3: branch_false: ...to here
lilv-0.24.26/src/state.c:1296:3: call_function: calling ‘lilv_state_make_links’ from ‘lilv_state_save’
# 1223|   {
# 1224|     // Create symlinks to files
# 1225|->   for (ZixTreeIter* i = zix_tree_begin(state->abs2rel);
# 1226|          i != zix_tree_end(state->abs2rel);
# 1227|          i = zix_tree_iter_next(i)) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def103]
lilv-0.24.26/src/state.c:1584:3: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
lilv-0.24.26/src/state.c:1583:3: release_memory: using NULL here
lilv-0.24.26/src/state.c:1584:3: danger: argument 1 (‘realloc(*state.label,  len + 1)’) NULL where non-null expected
# 1582|     const size_t len = strlen(label);
# 1583|     state->label     = (char*)realloc(state->label, len + 1);
# 1584|->   memcpy(state->label, label, len + 1);
# 1585|   }
# 1586|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
lilv-0.24.26/src/ui.c:25:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ui’
lilv-0.24.26/src/ui.c:24:29: acquire_memory: this call could return NULL
lilv-0.24.26/src/ui.c:25:3: danger: ‘ui’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   23|   
#   24|     LilvUI* ui     = (LilvUI*)malloc(sizeof(LilvUI));
#   25|->   ui->world      = world;
#   26|     ui->uri        = uri;
#   27|     ui->binary_uri = binary_uri;

Error: CPPCHECK_WARNING (CWE-476): [#def105]
lilv-0.24.26/src/ui.c:26: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ui
#   24|     LilvUI* ui     = (LilvUI*)malloc(sizeof(LilvUI));
#   25|     ui->world      = world;
#   26|->   ui->uri        = uri;
#   27|     ui->binary_uri = binary_uri;
#   28|   

Error: CPPCHECK_WARNING (CWE-476): [#def106]
lilv-0.24.26/src/ui.c:27: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ui
#   25|     ui->world      = world;
#   26|     ui->uri        = uri;
#   27|->   ui->binary_uri = binary_uri;
#   28|   
#   29|     // FIXME: kludge

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
lilv-0.24.26/src/ui.c:30:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ui’
lilv-0.24.26/src/ui.c:24:29: acquire_memory: allocated here
lilv-0.24.26/src/ui.c:30:22: throw: if ‘lilv_node_as_string’ throws an exception...
lilv-0.24.26/src/ui.c:30:22: danger: ‘ui’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   28|   
#   29|     // FIXME: kludge
#   30|->   char* bundle     = lilv_strdup(lilv_node_as_string(ui->binary_uri));
#   31|     char* last_slash = strrchr(bundle, '/') + 1;
#   32|     *last_slash      = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
lilv-0.24.26/src/ui.c:33:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ui’
lilv-0.24.26/src/ui.c:24:29: acquire_memory: allocated here
lilv-0.24.26/src/ui.c:33:22: throw: if ‘lilv_new_uri’ throws an exception...
lilv-0.24.26/src/ui.c:33:22: danger: ‘ui’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   31|     char* last_slash = strrchr(bundle, '/') + 1;
#   32|     *last_slash      = '\0';
#   33|->   ui->bundle_uri   = lilv_new_uri(world, bundle);
#   34|     free(bundle);
#   35|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
lilv-0.24.26/src/ui.c:36:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ui’
lilv-0.24.26/src/ui.c:24:29: acquire_memory: allocated here
lilv-0.24.26/src/ui.c:36:17: throw: if ‘lilv_nodes_new’ throws an exception...
lilv-0.24.26/src/ui.c:36:17: danger: ‘ui’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   34|     free(bundle);
#   35|   
#   36|->   ui->classes = lilv_nodes_new();
#   37|     zix_tree_insert((ZixTree*)ui->classes, type_uri, NULL);
#   38|   

Error: CPPCHECK_WARNING (CWE-476): [#def110]
lilv-0.24.26/src/ui.c:37: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ui
#   35|   
#   36|     ui->classes = lilv_nodes_new();
#   37|->   zix_tree_insert((ZixTree*)ui->classes, type_uri, NULL);
#   38|   
#   39|     return ui;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
lilv-0.24.26/src/ui.c:37:3: warning[-Wanalyzer-malloc-leak]: leak of ‘ui’
lilv-0.24.26/src/ui.c:24:29: acquire_memory: allocated here
lilv-0.24.26/src/ui.c:37:3: throw: if ‘zix_tree_insert’ throws an exception...
lilv-0.24.26/src/ui.c:37:3: danger: ‘ui’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   35|   
#   36|     ui->classes = lilv_nodes_new();
#   37|->   zix_tree_insert((ZixTree*)ui->classes, type_uri, NULL);
#   38|   
#   39|     return ui;

Error: CPPCHECK_WARNING (CWE-476): [#def112]
lilv-0.24.26/src/util.c:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   34|     char*  result = (char*)malloc(len + 1);
#   35|   
#   36|->   memcpy(result, first, len);
#   37|   
#   38|     va_list args; // NOLINT(cppcoreguidelines-init-variables)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def113]
lilv-0.24.26/src/util.c:36:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
lilv-0.24.26/src/util.c:34:26: acquire_memory: this call could return NULL
lilv-0.24.26/src/util.c:36:3: danger: argument 1 (‘result’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#   34|     char*  result = (char*)malloc(len + 1);
#   35|   
#   36|->   memcpy(result, first, len);
#   37|   
#   38|     va_list args; // NOLINT(cppcoreguidelines-init-variables)

Error: CPPCHECK_WARNING (CWE-476): [#def114]
lilv-0.24.26/src/util.c:74: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: copy
#   72|     const size_t len  = strlen(str);
#   73|     char*        copy = (char*)malloc(len + 1);
#   74|->   memcpy(copy, str, len + 1);
#   75|     return copy;
#   76|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def115]
lilv-0.24.26/src/util.c:74:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘copy’ where non-null expected
lilv-0.24.26/src/util.c:68:6: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
lilv-0.24.26/src/util.c:72:23: branch_false: ...to here
lilv-0.24.26/src/util.c:73:30: acquire_memory: this call could return NULL
lilv-0.24.26/src/util.c:74:3: danger: argument 1 (‘copy’) from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
#   72|     const size_t len  = strlen(str);
#   73|     char*        copy = (char*)malloc(len + 1);
#   74|->   memcpy(copy, str, len + 1);
#   75|     return copy;
#   76|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
lilv-0.24.26/src/util.c:115:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lang’
lilv-0.24.26/src/util.c:106:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:112:38: acquire_memory: this call could return NULL
lilv-0.24.26/src/util.c:113:22: branch_true: following ‘true’ branch...
lilv-0.24.26/src/util.c:114:17: branch_true: ...to here
lilv-0.24.26/src/util.c:114:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/util.c:115:11: branch_true: ...to here
lilv-0.24.26/src/util.c:115:7: danger: ‘lang + i’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  113|     for (size_t i = 0; i < env_lang_len + 1; ++i) {
#  114|       if (env_lang[i] == '_') {
#  115|->       lang[i] = '-'; // Convert _ to -
#  116|       } else if (env_lang[i] >= 'A' && env_lang[i] <= 'Z') {
#  117|         lang[i] = env_lang[i] + ('a' - 'A'); // Convert to lowercase

Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
lilv-0.24.26/src/util.c:117:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lang’
lilv-0.24.26/src/util.c:106:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:112:38: acquire_memory: this call could return NULL
lilv-0.24.26/src/util.c:113:22: branch_true: following ‘true’ branch...
lilv-0.24.26/src/util.c:114:17: branch_true: ...to here
lilv-0.24.26/src/util.c:114:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:116:16: branch_false: ...to here
lilv-0.24.26/src/util.c:116:15: branch_true: following ‘true’ branch...
lilv-0.24.26/src/util.c:117:17: branch_true: ...to here
lilv-0.24.26/src/util.c:117:7: danger: ‘lang + i’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  115|         lang[i] = '-'; // Convert _ to -
#  116|       } else if (env_lang[i] >= 'A' && env_lang[i] <= 'Z') {
#  117|->       lang[i] = env_lang[i] + ('a' - 'A'); // Convert to lowercase
#  118|       } else if ((env_lang[i] >= 'a' && env_lang[i] <= 'z') ||
#  119|                  (env_lang[i] >= '0' && env_lang[i] <= '9')) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def118]
lilv-0.24.26/src/util.c:120:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lang’
lilv-0.24.26/src/util.c:106:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:112:38: acquire_memory: this call could return NULL
lilv-0.24.26/src/util.c:113:22: branch_true: following ‘true’ branch...
lilv-0.24.26/src/util.c:114:17: branch_true: ...to here
lilv-0.24.26/src/util.c:114:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:116:16: branch_false: ...to here
lilv-0.24.26/src/util.c:116:15: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:118:16: branch_false: ...to here
lilv-0.24.26/src/util.c:118:15: branch_true: following ‘true’ branch...
lilv-0.24.26/src/util.c:120:11: branch_true: ...to here
lilv-0.24.26/src/util.c:120:7: danger: ‘lang + i’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  118|       } else if ((env_lang[i] >= 'a' && env_lang[i] <= 'z') ||
#  119|                  (env_lang[i] >= '0' && env_lang[i] <= '9')) {
#  120|->       lang[i] = env_lang[i]; // Lowercase letter or digit, copy verbatim
#  121|       } else if (env_lang[i] == '\0' || env_lang[i] == '.') {
#  122|         // End, or start of suffix (e.g. en_CA.utf-8), finished

Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
lilv-0.24.26/src/util.c:123:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lang’
lilv-0.24.26/src/util.c:106:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:112:38: acquire_memory: this call could return NULL
lilv-0.24.26/src/util.c:113:22: branch_true: following ‘true’ branch...
lilv-0.24.26/src/util.c:114:17: branch_true: ...to here
lilv-0.24.26/src/util.c:114:8: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:116:16: branch_false: ...to here
lilv-0.24.26/src/util.c:116:15: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:118:16: branch_false: ...to here
lilv-0.24.26/src/util.c:118:15: branch_false: following ‘false’ branch...
lilv-0.24.26/src/util.c:121:16: branch_false: ...to here
lilv-0.24.26/src/util.c:121:15: branch_true: following ‘true’ branch...
lilv-0.24.26/src/util.c:123:11: branch_true: ...to here
lilv-0.24.26/src/util.c:123:7: danger: ‘lang + i’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  121|       } else if (env_lang[i] == '\0' || env_lang[i] == '.') {
#  122|         // End, or start of suffix (e.g. en_CA.utf-8), finished
#  123|->       lang[i] = '\0';
#  124|         break;
#  125|       } else {

Error: CPPCHECK_WARNING (CWE-476): [#def120]
lilv-0.24.26/src/util.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: path
#  140|     const size_t in_path_len = strlen(in_path);
#  141|     char*        path        = (char*)malloc(in_path_len + 7);
#  142|->   memcpy(path, in_path, in_path_len + 1);
#  143|   
#  144|     for (unsigned i = 2U; i < 1000000U; ++i) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def121]
lilv-0.24.26/src/util.c:142:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘path’ where non-null expected
lilv-0.24.26/src/util.c:141:37: acquire_memory: this call could return NULL
lilv-0.24.26/src/util.c:142:3: danger: argument 1 (‘path’) from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  140|     const size_t in_path_len = strlen(in_path);
#  141|     char*        path        = (char*)malloc(in_path_len + 7);
#  142|->   memcpy(path, in_path, in_path_len + 1);
#  143|   
#  144|     for (unsigned i = 2U; i < 1000000U; ++i) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
lilv-0.24.26/src/util.c:145:10: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
lilv-0.24.26/src/util.c:141:37: acquire_memory: allocated here
lilv-0.24.26/src/util.c:144:25: branch_true: following ‘true’ branch (when ‘i != 1000000’)...
lilv-0.24.26/src/util.c:145:10: branch_true: ...to here
lilv-0.24.26/src/util.c:145:10: throw: if the called function throws an exception...
lilv-0.24.26/src/util.c:145:10: danger: ‘path’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  143|   
#  144|     for (unsigned i = 2U; i < 1000000U; ++i) {
#  145|->     if (!exists(path, user_data)) {
#  146|         return path;
#  147|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
lilv-0.24.26/src/util.c:197:3: warning[-Wanalyzer-malloc-leak]: leak of ‘latest.pattern’
lilv-0.24.26/src/util.c:184:1: enter_function: entry to ‘lilv_get_latest_copy’
lilv-0.24.26/src/util.c:188:20: call_function: calling ‘lilv_strjoin’ from ‘lilv_get_latest_copy’
lilv-0.24.26/src/util.c:188:20: return_function: returning to ‘lilv_get_latest_copy’ from ‘lilv_strjoin’
lilv-0.24.26/src/util.c:197:3: throw: if ‘zix_dir_for_each’ throws an exception...
lilv-0.24.26/src/util.c:197:3: danger: ‘latest.pattern’ leaks here; was allocated at [(4)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/3)
#  195|     }
#  196|   
#  197|->   zix_dir_for_each(copy_dir, &latest, update_latest);
#  198|   
#  199|     free(latest.pattern);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def124]
lilv-0.24.26/src/world.c:47:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: this call could return NULL
lilv-0.24.26/src/world.c:47:3: danger: ‘world’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   45|     LilvWorld* world = (LilvWorld*)calloc(1, sizeof(LilvWorld));
#   46|   
#   47|->   world->world = sord_world_new();
#   48|     if (!world->world) {
#   49|       goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
lilv-0.24.26/src/world.c:47:18: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:47:18: throw: if ‘sord_world_new’ throws an exception...
lilv-0.24.26/src/world.c:47:18: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   45|     LilvWorld* world = (LilvWorld*)calloc(1, sizeof(LilvWorld));
#   46|   
#   47|->   world->world = sord_world_new();
#   48|     if (!world->world) {
#   49|       goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
lilv-0.24.26/src/world.c:52:18: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:52:18: throw: if ‘sord_new’ throws an exception...
lilv-0.24.26/src/world.c:52:18: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   50|     }
#   51|   
#   52|->   world->model = sord_new(world->world, SORD_SPO | SORD_OPS, true);
#   53|     if (!world->model) {
#   54|       goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
lilv-0.24.26/src/world.c:58:27: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:58:27: throw: if ‘lilv_plugin_classes_new’ throws an exception...
lilv-0.24.26/src/world.c:58:27: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   56|   
#   57|     world->specs          = NULL;
#   58|->   world->plugin_classes = lilv_plugin_classes_new();
#   59|     world->plugins        = lilv_plugins_new();
#   60|     world->zombies        = lilv_plugins_new();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
lilv-0.24.26/src/world.c:59:27: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:59:27: throw: if ‘lilv_plugins_new’ throws an exception...
lilv-0.24.26/src/world.c:59:27: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   57|     world->specs          = NULL;
#   58|     world->plugin_classes = lilv_plugin_classes_new();
#   59|->   world->plugins        = lilv_plugins_new();
#   60|     world->zombies        = lilv_plugins_new();
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
lilv-0.24.26/src/world.c:60:27: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:60:27: throw: if ‘lilv_plugins_new’ throws an exception...
lilv-0.24.26/src/world.c:60:27: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   58|     world->plugin_classes = lilv_plugin_classes_new();
#   59|     world->plugins        = lilv_plugins_new();
#   60|->   world->zombies        = lilv_plugins_new();
#   61|   
#   62|     world->loaded_files =

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
lilv-0.24.26/src/world.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:63:5: throw: if ‘zix_tree_new’ throws an exception...
lilv-0.24.26/src/world.c:63:5: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   61|   
#   62|     world->loaded_files =
#   63|->     zix_tree_new(NULL, false, lilv_resource_node_cmp, NULL, destroy_node, NULL);
#   64|   
#   65|     world->libs = zix_tree_new(NULL, false, lilv_lib_compare, NULL, NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
lilv-0.24.26/src/world.c:65:17: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:65:17: throw: if ‘zix_tree_new’ throws an exception...
lilv-0.24.26/src/world.c:65:17: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   63|       zix_tree_new(NULL, false, lilv_resource_node_cmp, NULL, destroy_node, NULL);
#   64|   
#   65|->   world->libs = zix_tree_new(NULL, false, lilv_lib_compare, NULL, NULL, NULL);
#   66|   
#   67|   #define NS_DCTERMS "http://purl.org/dc/terms/"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
lilv-0.24.26/src/world.c:73:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:73:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:73:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   71|   #define NEW_URI(uri) sord_new_uri(world->world, (const uint8_t*)(uri))
#   72|   
#   73|->   world->uris.dc_replaces         = NEW_URI(NS_DCTERMS "replaces");
#   74|     world->uris.dman_DynManifest    = NEW_URI(NS_DYNMAN "DynManifest");
#   75|     world->uris.doap_name           = NEW_URI(LILV_NS_DOAP "name");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
lilv-0.24.26/src/world.c:74:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:74:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:74:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#   72|   
#   73|     world->uris.dc_replaces         = NEW_URI(NS_DCTERMS "replaces");
#   74|->   world->uris.dman_DynManifest    = NEW_URI(NS_DYNMAN "DynManifest");
#   75|     world->uris.doap_name           = NEW_URI(LILV_NS_DOAP "name");
#   76|     world->uris.lv2_Plugin          = NEW_URI(LV2_CORE__Plugin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
lilv-0.24.26/src/world.c:75:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:75:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:75:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#   73|     world->uris.dc_replaces         = NEW_URI(NS_DCTERMS "replaces");
#   74|     world->uris.dman_DynManifest    = NEW_URI(NS_DYNMAN "DynManifest");
#   75|->   world->uris.doap_name           = NEW_URI(LILV_NS_DOAP "name");
#   76|     world->uris.lv2_Plugin          = NEW_URI(LV2_CORE__Plugin);
#   77|     world->uris.lv2_Specification   = NEW_URI(LV2_CORE__Specification);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
lilv-0.24.26/src/world.c:76:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:76:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:76:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#   74|     world->uris.dman_DynManifest    = NEW_URI(NS_DYNMAN "DynManifest");
#   75|     world->uris.doap_name           = NEW_URI(LILV_NS_DOAP "name");
#   76|->   world->uris.lv2_Plugin          = NEW_URI(LV2_CORE__Plugin);
#   77|     world->uris.lv2_Specification   = NEW_URI(LV2_CORE__Specification);
#   78|     world->uris.lv2_appliesTo       = NEW_URI(LV2_CORE__appliesTo);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
lilv-0.24.26/src/world.c:77:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:77:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:77:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#   75|     world->uris.doap_name           = NEW_URI(LILV_NS_DOAP "name");
#   76|     world->uris.lv2_Plugin          = NEW_URI(LV2_CORE__Plugin);
#   77|->   world->uris.lv2_Specification   = NEW_URI(LV2_CORE__Specification);
#   78|     world->uris.lv2_appliesTo       = NEW_URI(LV2_CORE__appliesTo);
#   79|     world->uris.lv2_binary          = NEW_URI(LV2_CORE__binary);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
lilv-0.24.26/src/world.c:78:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:78:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:78:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#   76|     world->uris.lv2_Plugin          = NEW_URI(LV2_CORE__Plugin);
#   77|     world->uris.lv2_Specification   = NEW_URI(LV2_CORE__Specification);
#   78|->   world->uris.lv2_appliesTo       = NEW_URI(LV2_CORE__appliesTo);
#   79|     world->uris.lv2_binary          = NEW_URI(LV2_CORE__binary);
#   80|     world->uris.lv2_default         = NEW_URI(LV2_CORE__default);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
lilv-0.24.26/src/world.c:79:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:79:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:79:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#   77|     world->uris.lv2_Specification   = NEW_URI(LV2_CORE__Specification);
#   78|     world->uris.lv2_appliesTo       = NEW_URI(LV2_CORE__appliesTo);
#   79|->   world->uris.lv2_binary          = NEW_URI(LV2_CORE__binary);
#   80|     world->uris.lv2_default         = NEW_URI(LV2_CORE__default);
#   81|     world->uris.lv2_designation     = NEW_URI(LV2_CORE__designation);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
lilv-0.24.26/src/world.c:80:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:80:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:80:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#   78|     world->uris.lv2_appliesTo       = NEW_URI(LV2_CORE__appliesTo);
#   79|     world->uris.lv2_binary          = NEW_URI(LV2_CORE__binary);
#   80|->   world->uris.lv2_default         = NEW_URI(LV2_CORE__default);
#   81|     world->uris.lv2_designation     = NEW_URI(LV2_CORE__designation);
#   82|     world->uris.lv2_extensionData   = NEW_URI(LV2_CORE__extensionData);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
lilv-0.24.26/src/world.c:81:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:81:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:81:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#   79|     world->uris.lv2_binary          = NEW_URI(LV2_CORE__binary);
#   80|     world->uris.lv2_default         = NEW_URI(LV2_CORE__default);
#   81|->   world->uris.lv2_designation     = NEW_URI(LV2_CORE__designation);
#   82|     world->uris.lv2_extensionData   = NEW_URI(LV2_CORE__extensionData);
#   83|     world->uris.lv2_index           = NEW_URI(LV2_CORE__index);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
lilv-0.24.26/src/world.c:82:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:82:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:82:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#   80|     world->uris.lv2_default         = NEW_URI(LV2_CORE__default);
#   81|     world->uris.lv2_designation     = NEW_URI(LV2_CORE__designation);
#   82|->   world->uris.lv2_extensionData   = NEW_URI(LV2_CORE__extensionData);
#   83|     world->uris.lv2_index           = NEW_URI(LV2_CORE__index);
#   84|     world->uris.lv2_latency         = NEW_URI(LV2_CORE__latency);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
lilv-0.24.26/src/world.c:83:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:83:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:83:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#   81|     world->uris.lv2_designation     = NEW_URI(LV2_CORE__designation);
#   82|     world->uris.lv2_extensionData   = NEW_URI(LV2_CORE__extensionData);
#   83|->   world->uris.lv2_index           = NEW_URI(LV2_CORE__index);
#   84|     world->uris.lv2_latency         = NEW_URI(LV2_CORE__latency);
#   85|     world->uris.lv2_maximum         = NEW_URI(LV2_CORE__maximum);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
lilv-0.24.26/src/world.c:84:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:84:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:84:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#   82|     world->uris.lv2_extensionData   = NEW_URI(LV2_CORE__extensionData);
#   83|     world->uris.lv2_index           = NEW_URI(LV2_CORE__index);
#   84|->   world->uris.lv2_latency         = NEW_URI(LV2_CORE__latency);
#   85|     world->uris.lv2_maximum         = NEW_URI(LV2_CORE__maximum);
#   86|     world->uris.lv2_microVersion    = NEW_URI(LV2_CORE__microVersion);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
lilv-0.24.26/src/world.c:85:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:85:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:85:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#   83|     world->uris.lv2_index           = NEW_URI(LV2_CORE__index);
#   84|     world->uris.lv2_latency         = NEW_URI(LV2_CORE__latency);
#   85|->   world->uris.lv2_maximum         = NEW_URI(LV2_CORE__maximum);
#   86|     world->uris.lv2_microVersion    = NEW_URI(LV2_CORE__microVersion);
#   87|     world->uris.lv2_minimum         = NEW_URI(LV2_CORE__minimum);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
lilv-0.24.26/src/world.c:86:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:86:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:86:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#   84|     world->uris.lv2_latency         = NEW_URI(LV2_CORE__latency);
#   85|     world->uris.lv2_maximum         = NEW_URI(LV2_CORE__maximum);
#   86|->   world->uris.lv2_microVersion    = NEW_URI(LV2_CORE__microVersion);
#   87|     world->uris.lv2_minimum         = NEW_URI(LV2_CORE__minimum);
#   88|     world->uris.lv2_minorVersion    = NEW_URI(LV2_CORE__minorVersion);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
lilv-0.24.26/src/world.c:87:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:87:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:87:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#   85|     world->uris.lv2_maximum         = NEW_URI(LV2_CORE__maximum);
#   86|     world->uris.lv2_microVersion    = NEW_URI(LV2_CORE__microVersion);
#   87|->   world->uris.lv2_minimum         = NEW_URI(LV2_CORE__minimum);
#   88|     world->uris.lv2_minorVersion    = NEW_URI(LV2_CORE__minorVersion);
#   89|     world->uris.lv2_name            = NEW_URI(LV2_CORE__name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
lilv-0.24.26/src/world.c:88:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:88:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:88:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#   86|     world->uris.lv2_microVersion    = NEW_URI(LV2_CORE__microVersion);
#   87|     world->uris.lv2_minimum         = NEW_URI(LV2_CORE__minimum);
#   88|->   world->uris.lv2_minorVersion    = NEW_URI(LV2_CORE__minorVersion);
#   89|     world->uris.lv2_name            = NEW_URI(LV2_CORE__name);
#   90|     world->uris.lv2_optionalFeature = NEW_URI(LV2_CORE__optionalFeature);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
lilv-0.24.26/src/world.c:89:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:89:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:89:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#   87|     world->uris.lv2_minimum         = NEW_URI(LV2_CORE__minimum);
#   88|     world->uris.lv2_minorVersion    = NEW_URI(LV2_CORE__minorVersion);
#   89|->   world->uris.lv2_name            = NEW_URI(LV2_CORE__name);
#   90|     world->uris.lv2_optionalFeature = NEW_URI(LV2_CORE__optionalFeature);
#   91|     world->uris.lv2_port            = NEW_URI(LV2_CORE__port);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
lilv-0.24.26/src/world.c:90:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:90:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:90:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#   88|     world->uris.lv2_minorVersion    = NEW_URI(LV2_CORE__minorVersion);
#   89|     world->uris.lv2_name            = NEW_URI(LV2_CORE__name);
#   90|->   world->uris.lv2_optionalFeature = NEW_URI(LV2_CORE__optionalFeature);
#   91|     world->uris.lv2_port            = NEW_URI(LV2_CORE__port);
#   92|     world->uris.lv2_portProperty    = NEW_URI(LV2_CORE__portProperty);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
lilv-0.24.26/src/world.c:91:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:91:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:91:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#   89|     world->uris.lv2_name            = NEW_URI(LV2_CORE__name);
#   90|     world->uris.lv2_optionalFeature = NEW_URI(LV2_CORE__optionalFeature);
#   91|->   world->uris.lv2_port            = NEW_URI(LV2_CORE__port);
#   92|     world->uris.lv2_portProperty    = NEW_URI(LV2_CORE__portProperty);
#   93|     world->uris.lv2_reportsLatency  = NEW_URI(LV2_CORE__reportsLatency);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
lilv-0.24.26/src/world.c:92:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:92:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:92:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#   90|     world->uris.lv2_optionalFeature = NEW_URI(LV2_CORE__optionalFeature);
#   91|     world->uris.lv2_port            = NEW_URI(LV2_CORE__port);
#   92|->   world->uris.lv2_portProperty    = NEW_URI(LV2_CORE__portProperty);
#   93|     world->uris.lv2_reportsLatency  = NEW_URI(LV2_CORE__reportsLatency);
#   94|     world->uris.lv2_requiredFeature = NEW_URI(LV2_CORE__requiredFeature);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
lilv-0.24.26/src/world.c:93:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:93:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:93:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#   91|     world->uris.lv2_port            = NEW_URI(LV2_CORE__port);
#   92|     world->uris.lv2_portProperty    = NEW_URI(LV2_CORE__portProperty);
#   93|->   world->uris.lv2_reportsLatency  = NEW_URI(LV2_CORE__reportsLatency);
#   94|     world->uris.lv2_requiredFeature = NEW_URI(LV2_CORE__requiredFeature);
#   95|     world->uris.lv2_symbol          = NEW_URI(LV2_CORE__symbol);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
lilv-0.24.26/src/world.c:94:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:94:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:94:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#   92|     world->uris.lv2_portProperty    = NEW_URI(LV2_CORE__portProperty);
#   93|     world->uris.lv2_reportsLatency  = NEW_URI(LV2_CORE__reportsLatency);
#   94|->   world->uris.lv2_requiredFeature = NEW_URI(LV2_CORE__requiredFeature);
#   95|     world->uris.lv2_symbol          = NEW_URI(LV2_CORE__symbol);
#   96|     world->uris.lv2_prototype       = NEW_URI(LV2_CORE__prototype);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
lilv-0.24.26/src/world.c:95:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:95:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:95:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#   93|     world->uris.lv2_reportsLatency  = NEW_URI(LV2_CORE__reportsLatency);
#   94|     world->uris.lv2_requiredFeature = NEW_URI(LV2_CORE__requiredFeature);
#   95|->   world->uris.lv2_symbol          = NEW_URI(LV2_CORE__symbol);
#   96|     world->uris.lv2_prototype       = NEW_URI(LV2_CORE__prototype);
#   97|     world->uris.owl_Ontology        = NEW_URI(NS_OWL "Ontology");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
lilv-0.24.26/src/world.c:96:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:96:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:96:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#   94|     world->uris.lv2_requiredFeature = NEW_URI(LV2_CORE__requiredFeature);
#   95|     world->uris.lv2_symbol          = NEW_URI(LV2_CORE__symbol);
#   96|->   world->uris.lv2_prototype       = NEW_URI(LV2_CORE__prototype);
#   97|     world->uris.owl_Ontology        = NEW_URI(NS_OWL "Ontology");
#   98|     world->uris.pset_value          = NEW_URI(LV2_PRESETS__value);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
lilv-0.24.26/src/world.c:97:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:97:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:97:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#   95|     world->uris.lv2_symbol          = NEW_URI(LV2_CORE__symbol);
#   96|     world->uris.lv2_prototype       = NEW_URI(LV2_CORE__prototype);
#   97|->   world->uris.owl_Ontology        = NEW_URI(NS_OWL "Ontology");
#   98|     world->uris.pset_value          = NEW_URI(LV2_PRESETS__value);
#   99|     world->uris.rdf_a               = NEW_URI(LILV_NS_RDF "type");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
lilv-0.24.26/src/world.c:98:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:98:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:98:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#   96|     world->uris.lv2_prototype       = NEW_URI(LV2_CORE__prototype);
#   97|     world->uris.owl_Ontology        = NEW_URI(NS_OWL "Ontology");
#   98|->   world->uris.pset_value          = NEW_URI(LV2_PRESETS__value);
#   99|     world->uris.rdf_a               = NEW_URI(LILV_NS_RDF "type");
#  100|     world->uris.rdf_value           = NEW_URI(LILV_NS_RDF "value");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
lilv-0.24.26/src/world.c:99:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:99:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:99:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
#   97|     world->uris.owl_Ontology        = NEW_URI(NS_OWL "Ontology");
#   98|     world->uris.pset_value          = NEW_URI(LV2_PRESETS__value);
#   99|->   world->uris.rdf_a               = NEW_URI(LILV_NS_RDF "type");
#  100|     world->uris.rdf_value           = NEW_URI(LILV_NS_RDF "value");
#  101|     world->uris.rdfs_Class          = NEW_URI(LILV_NS_RDFS "Class");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
lilv-0.24.26/src/world.c:100:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:100:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:100:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
#   98|     world->uris.pset_value          = NEW_URI(LV2_PRESETS__value);
#   99|     world->uris.rdf_a               = NEW_URI(LILV_NS_RDF "type");
#  100|->   world->uris.rdf_value           = NEW_URI(LILV_NS_RDF "value");
#  101|     world->uris.rdfs_Class          = NEW_URI(LILV_NS_RDFS "Class");
#  102|     world->uris.rdfs_label          = NEW_URI(LILV_NS_RDFS "label");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
lilv-0.24.26/src/world.c:101:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:101:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:101:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
#   99|     world->uris.rdf_a               = NEW_URI(LILV_NS_RDF "type");
#  100|     world->uris.rdf_value           = NEW_URI(LILV_NS_RDF "value");
#  101|->   world->uris.rdfs_Class          = NEW_URI(LILV_NS_RDFS "Class");
#  102|     world->uris.rdfs_label          = NEW_URI(LILV_NS_RDFS "label");
#  103|     world->uris.rdfs_seeAlso        = NEW_URI(LILV_NS_RDFS "seeAlso");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
lilv-0.24.26/src/world.c:102:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:102:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:102:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
#  100|     world->uris.rdf_value           = NEW_URI(LILV_NS_RDF "value");
#  101|     world->uris.rdfs_Class          = NEW_URI(LILV_NS_RDFS "Class");
#  102|->   world->uris.rdfs_label          = NEW_URI(LILV_NS_RDFS "label");
#  103|     world->uris.rdfs_seeAlso        = NEW_URI(LILV_NS_RDFS "seeAlso");
#  104|     world->uris.rdfs_subClassOf     = NEW_URI(LILV_NS_RDFS "subClassOf");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
lilv-0.24.26/src/world.c:103:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:103:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:103:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
#  101|     world->uris.rdfs_Class          = NEW_URI(LILV_NS_RDFS "Class");
#  102|     world->uris.rdfs_label          = NEW_URI(LILV_NS_RDFS "label");
#  103|->   world->uris.rdfs_seeAlso        = NEW_URI(LILV_NS_RDFS "seeAlso");
#  104|     world->uris.rdfs_subClassOf     = NEW_URI(LILV_NS_RDFS "subClassOf");
#  105|     world->uris.xsd_base64Binary    = NEW_URI(LILV_NS_XSD "base64Binary");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
lilv-0.24.26/src/world.c:104:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:104:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:104:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
#  102|     world->uris.rdfs_label          = NEW_URI(LILV_NS_RDFS "label");
#  103|     world->uris.rdfs_seeAlso        = NEW_URI(LILV_NS_RDFS "seeAlso");
#  104|->   world->uris.rdfs_subClassOf     = NEW_URI(LILV_NS_RDFS "subClassOf");
#  105|     world->uris.xsd_base64Binary    = NEW_URI(LILV_NS_XSD "base64Binary");
#  106|     world->uris.xsd_boolean         = NEW_URI(LILV_NS_XSD "boolean");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
lilv-0.24.26/src/world.c:105:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:105:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:105:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
#  103|     world->uris.rdfs_seeAlso        = NEW_URI(LILV_NS_RDFS "seeAlso");
#  104|     world->uris.rdfs_subClassOf     = NEW_URI(LILV_NS_RDFS "subClassOf");
#  105|->   world->uris.xsd_base64Binary    = NEW_URI(LILV_NS_XSD "base64Binary");
#  106|     world->uris.xsd_boolean         = NEW_URI(LILV_NS_XSD "boolean");
#  107|     world->uris.xsd_decimal         = NEW_URI(LILV_NS_XSD "decimal");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
lilv-0.24.26/src/world.c:106:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:106:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:106:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
#  104|     world->uris.rdfs_subClassOf     = NEW_URI(LILV_NS_RDFS "subClassOf");
#  105|     world->uris.xsd_base64Binary    = NEW_URI(LILV_NS_XSD "base64Binary");
#  106|->   world->uris.xsd_boolean         = NEW_URI(LILV_NS_XSD "boolean");
#  107|     world->uris.xsd_decimal         = NEW_URI(LILV_NS_XSD "decimal");
#  108|     world->uris.xsd_double          = NEW_URI(LILV_NS_XSD "double");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
lilv-0.24.26/src/world.c:107:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:107:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:107:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
#  105|     world->uris.xsd_base64Binary    = NEW_URI(LILV_NS_XSD "base64Binary");
#  106|     world->uris.xsd_boolean         = NEW_URI(LILV_NS_XSD "boolean");
#  107|->   world->uris.xsd_decimal         = NEW_URI(LILV_NS_XSD "decimal");
#  108|     world->uris.xsd_double          = NEW_URI(LILV_NS_XSD "double");
#  109|     world->uris.xsd_integer         = NEW_URI(LILV_NS_XSD "integer");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
lilv-0.24.26/src/world.c:108:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:108:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:108:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
#  106|     world->uris.xsd_boolean         = NEW_URI(LILV_NS_XSD "boolean");
#  107|     world->uris.xsd_decimal         = NEW_URI(LILV_NS_XSD "decimal");
#  108|->   world->uris.xsd_double          = NEW_URI(LILV_NS_XSD "double");
#  109|     world->uris.xsd_integer         = NEW_URI(LILV_NS_XSD "integer");
#  110|     world->uris.null_uri            = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
lilv-0.24.26/src/world.c:109:37: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:109:37: throw: if ‘sord_new_uri’ throws an exception...
lilv-0.24.26/src/world.c:109:37: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
#  107|     world->uris.xsd_decimal         = NEW_URI(LILV_NS_XSD "decimal");
#  108|     world->uris.xsd_double          = NEW_URI(LILV_NS_XSD "double");
#  109|->   world->uris.xsd_integer         = NEW_URI(LILV_NS_XSD "integer");
#  110|     world->uris.null_uri            = NULL;
#  111|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
lilv-0.24.26/src/world.c:113:5: warning[-Wanalyzer-malloc-leak]: leak of ‘world’
lilv-0.24.26/src/world.c:45:34: acquire_memory: allocated here
lilv-0.24.26/src/world.c:48:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:52:18: branch_false: ...to here
lilv-0.24.26/src/world.c:53:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:57:3: branch_false: ...to here
lilv-0.24.26/src/world.c:113:5: throw: if ‘lilv_plugin_class_new’ throws an exception...
lilv-0.24.26/src/world.c:113:5: danger: ‘world’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
#  111|   
#  112|     world->lv2_plugin_class =
#  113|->     lilv_plugin_class_new(world, NULL, world->uris.lv2_Plugin, "Plugin");
#  114|     assert(world->lv2_plugin_class);
#  115|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
lilv-0.24.26/src/world.c:407:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: this call could return NULL
lilv-0.24.26/src/world.c:407:3: danger: ‘spec’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
#  405|   {
#  406|     LilvSpec* spec  = (LilvSpec*)malloc(sizeof(LilvSpec));
#  407|->   spec->spec      = sord_node_copy(specification_node);
#  408|     spec->bundle    = sord_node_copy(bundle_node);
#  409|     spec->data_uris = lilv_nodes_new();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
lilv-0.24.26/src/world.c:407:21: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:407:21: throw: if ‘sord_node_copy’ throws an exception...
lilv-0.24.26/src/world.c:407:21: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
#  405|   {
#  406|     LilvSpec* spec  = (LilvSpec*)malloc(sizeof(LilvSpec));
#  407|->   spec->spec      = sord_node_copy(specification_node);
#  408|     spec->bundle    = sord_node_copy(bundle_node);
#  409|     spec->data_uris = lilv_nodes_new();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
lilv-0.24.26/src/world.c:408:21: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:408:21: throw: if ‘sord_node_copy’ throws an exception...
lilv-0.24.26/src/world.c:408:21: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
#  406|     LilvSpec* spec  = (LilvSpec*)malloc(sizeof(LilvSpec));
#  407|     spec->spec      = sord_node_copy(specification_node);
#  408|->   spec->bundle    = sord_node_copy(bundle_node);
#  409|     spec->data_uris = lilv_nodes_new();
#  410|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
lilv-0.24.26/src/world.c:409:21: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:409:21: throw: if ‘lilv_nodes_new’ throws an exception...
lilv-0.24.26/src/world.c:409:21: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
#  407|     spec->spec      = sord_node_copy(specification_node);
#  408|     spec->bundle    = sord_node_copy(bundle_node);
#  409|->   spec->data_uris = lilv_nodes_new();
#  410|   
#  411|     // Add all data files (rdfs:seeAlso)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
lilv-0.24.26/src/world.c:412:21: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:412:21: throw: if ‘sord_search’ throws an exception...
lilv-0.24.26/src/world.c:412:21: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
#  410|   
#  411|     // Add all data files (rdfs:seeAlso)
#  412|->   SordIter* files = sord_search(
#  413|       world->model, specification_node, world->uris.rdfs_seeAlso, NULL, NULL);
#  414|     FOREACH_MATCH (files) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
lilv-0.24.26/src/world.c:414:3: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:414:3: throw: if ‘sord_iter_end’ throws an exception...
lilv-0.24.26/src/world.c:414:3: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
#  412|     SordIter* files = sord_search(
#  413|       world->model, specification_node, world->uris.rdfs_seeAlso, NULL, NULL);
#  414|->   FOREACH_MATCH (files) {
#  415|       const SordNode* file_node = sord_iter_get_node(files, SORD_OBJECT);
#  416|       zix_tree_insert((ZixTree*)spec->data_uris,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
lilv-0.24.26/src/world.c:415:33: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:414:3: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:415:33: branch_false: ...to here
lilv-0.24.26/src/world.c:415:33: throw: if ‘sord_iter_get_node’ throws an exception...
lilv-0.24.26/src/world.c:415:33: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
#  413|       world->model, specification_node, world->uris.rdfs_seeAlso, NULL, NULL);
#  414|     FOREACH_MATCH (files) {
#  415|->     const SordNode* file_node = sord_iter_get_node(files, SORD_OBJECT);
#  416|       zix_tree_insert((ZixTree*)spec->data_uris,
#  417|                       lilv_node_new_from_node(world, file_node),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
lilv-0.24.26/src/world.c:416:5: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:414:3: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:415:33: branch_false: ...to here
lilv-0.24.26/src/world.c:416:5: throw: if ‘zix_tree_insert’ throws an exception...
lilv-0.24.26/src/world.c:416:5: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
#  414|     FOREACH_MATCH (files) {
#  415|       const SordNode* file_node = sord_iter_get_node(files, SORD_OBJECT);
#  416|->     zix_tree_insert((ZixTree*)spec->data_uris,
#  417|                       lilv_node_new_from_node(world, file_node),
#  418|                       NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
lilv-0.24.26/src/world.c:417:21: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:414:3: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:415:33: branch_false: ...to here
lilv-0.24.26/src/world.c:417:21: throw: if ‘lilv_node_new_from_node’ throws an exception...
lilv-0.24.26/src/world.c:417:21: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
#  415|       const SordNode* file_node = sord_iter_get_node(files, SORD_OBJECT);
#  416|       zix_tree_insert((ZixTree*)spec->data_uris,
#  417|->                     lilv_node_new_from_node(world, file_node),
#  418|                       NULL);
#  419|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
lilv-0.24.26/src/world.c:420:3: warning[-Wanalyzer-malloc-leak]: leak of ‘spec’
lilv-0.24.26/src/world.c:406:32: acquire_memory: allocated here
lilv-0.24.26/src/world.c:420:3: throw: if ‘sord_iter_free’ throws an exception...
lilv-0.24.26/src/world.c:420:3: danger: ‘spec’ leaks here; was allocated at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
#  418|                       NULL);
#  419|     }
#  420|->   sord_iter_free(files);
#  421|   
#  422|     // Add specification to world specification list

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
lilv-0.24.26/src/world.c:978:22: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
lilv-0.24.26/src/world.c:1002:1: enter_function: entry to ‘lilv_world_load_path’
lilv-0.24.26/src/world.c:1004:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1004:10: branch_true: ...to here
lilv-0.24.26/src/world.c:1005:29: call_function: inlined call to ‘first_path_sep’ from ‘lilv_world_load_path’
lilv-0.24.26/src/world.c:1006:8: branch_true: ...to here
lilv-0.24.26/src/world.c:1006:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1007:30: branch_true: ...to here
lilv-0.24.26/src/world.c:1008:37: acquire_memory: allocated here
lilv-0.24.26/src/world.c:1011:7: call_function: calling ‘lilv_world_load_directory’ from ‘lilv_world_load_path’
#  976|   lilv_world_load_directory(LilvWorld* world, const char* dir_path)
#  977|   {
#  978|->   char* const path = zix_expand_environment_strings(NULL, dir_path);
#  979|     if (path) {
#  980|       zix_dir_for_each(path, world, load_dir_entry);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
lilv-0.24.26/src/world.c:980:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
lilv-0.24.26/src/world.c:1002:1: enter_function: entry to ‘lilv_world_load_path’
lilv-0.24.26/src/world.c:1004:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1004:10: branch_true: ...to here
lilv-0.24.26/src/world.c:1005:29: call_function: inlined call to ‘first_path_sep’ from ‘lilv_world_load_path’
lilv-0.24.26/src/world.c:1006:8: branch_true: ...to here
lilv-0.24.26/src/world.c:1006:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1007:30: branch_true: ...to here
lilv-0.24.26/src/world.c:1008:37: acquire_memory: allocated here
lilv-0.24.26/src/world.c:1011:7: call_function: calling ‘lilv_world_load_directory’ from ‘lilv_world_load_path’
#  978|     char* const path = zix_expand_environment_strings(NULL, dir_path);
#  979|     if (path) {
#  980|->     zix_dir_for_each(path, world, load_dir_entry);
#  981|       free(path);
#  982|     }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def182]
lilv-0.24.26/src/world.c:1009:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘dir’ where non-null expected
lilv-0.24.26/src/world.c:1002:1: enter_function: entry to ‘lilv_world_load_path’
lilv-0.24.26/src/world.c:1004:10: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1004:10: branch_true: ...to here
lilv-0.24.26/src/world.c:1005:29: call_function: inlined call to ‘first_path_sep’ from ‘lilv_world_load_path’
lilv-0.24.26/src/world.c:1006:8: branch_true: ...to here
lilv-0.24.26/src/world.c:1006:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1007:30: branch_true: ...to here
lilv-0.24.26/src/world.c:1008:37: acquire_memory: this call could return NULL
lilv-0.24.26/src/world.c:1009:7: danger: argument 1 (‘dir’) from [(11)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
# 1007|         const size_t dir_len = sep - lv2_path;
# 1008|         char* const  dir     = (char*)malloc(dir_len + 1);
# 1009|->       memcpy(dir, lv2_path, dir_len);
# 1010|         dir[dir_len] = '\0';
# 1011|         lilv_world_load_directory(world, dir);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
lilv-0.24.26/src/world.c:1255:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sym’
lilv-0.24.26/src/world.c:1225:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:1231:8: branch_false: ...to here
lilv-0.24.26/src/world.c:1231:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1237:34: branch_true: ...to here
lilv-0.24.26/src/world.c:1250:29: acquire_memory: this call could return NULL
lilv-0.24.26/src/world.c:1251:22: branch_true: following ‘true’ branch (when ‘i < len’)...
lilv-0.24.26/src/world.c:1252:23: branch_true: ...to here
lilv-0.24.26/src/world.c:1253:8: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1255:7: danger: ‘sym + i’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/4)
# 1253|       if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c == '_') ||
# 1254|             (i > 0 && c >= '0' && c <= '9'))) {
# 1255|->       sym[i] = '_';
# 1256|       } else {
# 1257|         sym[i] = str[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def184]
lilv-0.24.26/src/world.c:1257:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sym’
lilv-0.24.26/src/world.c:1225:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:1231:8: branch_false: ...to here
lilv-0.24.26/src/world.c:1231:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1237:34: branch_true: ...to here
lilv-0.24.26/src/world.c:1250:29: acquire_memory: this call could return NULL
lilv-0.24.26/src/world.c:1251:22: branch_true: following ‘true’ branch (when ‘i < len’)...
lilv-0.24.26/src/world.c:1252:23: branch_true: ...to here
lilv-0.24.26/src/world.c:1257:7: danger: ‘sym + i’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/4)
# 1255|         sym[i] = '_';
# 1256|       } else {
# 1257|->       sym[i] = str[i];
# 1258|       }
# 1259|     }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
lilv-0.24.26/src/world.c:1261:19: warning[-Wanalyzer-malloc-leak]: leak of ‘sym’
lilv-0.24.26/src/world.c:1225:6: branch_false: following ‘false’ branch...
lilv-0.24.26/src/world.c:1231:8: branch_false: ...to here
lilv-0.24.26/src/world.c:1231:6: branch_true: following ‘true’ branch...
lilv-0.24.26/src/world.c:1237:34: branch_true: ...to here
lilv-0.24.26/src/world.c:1250:29: acquire_memory: allocated here
lilv-0.24.26/src/world.c:1251:22: branch_false: following ‘false’ branch (when ‘i >= len’)...
lilv-0.24.26/src/world.c:1261:19: branch_false: ...to here
lilv-0.24.26/src/world.c:1261:19: throw: if ‘lilv_new_string’ throws an exception...
lilv-0.24.26/src/world.c:1261:19: danger: ‘sym’ leaks here; was allocated at [(5)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/4)
# 1259|     }
# 1260|   
# 1261|->   LilvNode* ret = lilv_new_string(world, sym);
# 1262|     free(sym);
# 1263|     return ret;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
lilv-0.24.26/test/lilv_test_uri_map.h:24:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ctx’
lilv-0.24.26/test/test_state.c:62:36: acquire_memory: this call could return NULL
lilv-0.24.26/test/test_state.c:64:3: call_function: inlined call to ‘lilv_test_uri_map_init’ from ‘test_context_new’
#   22|   {
#   23|     map->uris   = NULL;
#   24|->   map->n_uris = 0;
#   25|   }
#   26|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
lilv-0.24.26/test/lilv_test_uri_map.h:54:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
lilv-0.24.26/test/test_state.c:60:1: enter_function: entry to ‘test_context_new’
lilv-0.24.26/test/test_state.c:84:5: call_function: calling ‘map_uri’ from ‘test_context_new’
#   52|   
#   53|     map->uris = (char**)realloc(map->uris, ++map->n_uris * sizeof(char*));
#   54|->   map->uris[map->n_uris - 1] = (char*)calloc(1, uri_len + 1);
#   55|     memcpy(map->uris[map->n_uris - 1], uri, uri_len + 1);
#   56|     return map->n_uris;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
lilv-0.24.26/test/lilv_test_uri_map.h:55:3: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, uri_len + 1)’
lilv-0.24.26/test/lilv_test_uri_map.h:51:3: branch_true: following ‘true’ branch...
lilv-0.24.26/test/lilv_test_uri_map.h:53:42: branch_true: ...to here
lilv-0.24.26/test/lilv_test_uri_map.h:54:39: acquire_memory: allocated here
lilv-0.24.26/test/lilv_test_uri_map.h:55:3: danger: ‘calloc(1, uri_len + 1)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
#   53|     map->uris = (char**)realloc(map->uris, ++map->n_uris * sizeof(char*));
#   54|     map->uris[map->n_uris - 1] = (char*)calloc(1, uri_len + 1);
#   55|->   memcpy(map->uris[map->n_uris - 1], uri, uri_len + 1);
#   56|     return map->n_uris;
#   57|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def189]
lilv-0.24.26/test/lilv_test_uri_map.h:55:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘calloc(1, uri_len + 1)’ where non-null expected
lilv-0.24.26/test/lilv_test_uri_map.h:51:3: branch_true: following ‘true’ branch...
lilv-0.24.26/test/lilv_test_uri_map.h:53:42: branch_true: ...to here
lilv-0.24.26/test/lilv_test_uri_map.h:54:39: acquire_memory: this call could return NULL
lilv-0.24.26/test/lilv_test_uri_map.h:55:3: danger: argument 1 (‘calloc(1, uri_len + 1)’) from [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3) could be NULL where non-null expected
#   53|     map->uris = (char**)realloc(map->uris, ++map->n_uris * sizeof(char*));
#   54|     map->uris[map->n_uris - 1] = (char*)calloc(1, uri_len + 1);
#   55|->   memcpy(map->uris[map->n_uris - 1], uri, uri_len + 1);
#   56|     return map->n_uris;
#   57|   }

Error: CPPCHECK_WARNING (CWE-476): [#def190]
lilv-0.24.26/test/lilv_test_utils.c:30: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: env
#   28|     LilvTestEnv* env = (LilvTestEnv*)calloc(1, sizeof(LilvTestEnv));
#   29|   
#   30|->   env->world       = world;
#   31|     env->plugin1_uri = lilv_new_uri(world, "http://example.org/plug");
#   32|     env->plugin2_uri = lilv_new_uri(world, "http://example.org/foobar");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
lilv-0.24.26/test/lilv_test_utils.c:30:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘env’
lilv-0.24.26/test/lilv_test_utils.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/lilv_test_utils.c:28:36: branch_false: ...to here
lilv-0.24.26/test/lilv_test_utils.c:28:36: acquire_memory: this call could return NULL
lilv-0.24.26/test/lilv_test_utils.c:30:3: danger: ‘env’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   28|     LilvTestEnv* env = (LilvTestEnv*)calloc(1, sizeof(LilvTestEnv));
#   29|   
#   30|->   env->world       = world;
#   31|     env->plugin1_uri = lilv_new_uri(world, "http://example.org/plug");
#   32|     env->plugin2_uri = lilv_new_uri(world, "http://example.org/foobar");

Error: CPPCHECK_WARNING (CWE-476): [#def192]
lilv-0.24.26/test/lilv_test_utils.c:31: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: env
#   29|   
#   30|     env->world       = world;
#   31|->   env->plugin1_uri = lilv_new_uri(world, "http://example.org/plug");
#   32|     env->plugin2_uri = lilv_new_uri(world, "http://example.org/foobar");
#   33|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
lilv-0.24.26/test/lilv_test_utils.c:31:22: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
lilv-0.24.26/test/lilv_test_utils.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/lilv_test_utils.c:28:36: branch_false: ...to here
lilv-0.24.26/test/lilv_test_utils.c:28:36: acquire_memory: allocated here
lilv-0.24.26/test/lilv_test_utils.c:31:22: throw: if ‘lilv_new_uri’ throws an exception...
lilv-0.24.26/test/lilv_test_utils.c:31:22: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   29|   
#   30|     env->world       = world;
#   31|->   env->plugin1_uri = lilv_new_uri(world, "http://example.org/plug");
#   32|     env->plugin2_uri = lilv_new_uri(world, "http://example.org/foobar");
#   33|   

Error: CPPCHECK_WARNING (CWE-476): [#def194]
lilv-0.24.26/test/lilv_test_utils.c:32: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: env
#   30|     env->world       = world;
#   31|     env->plugin1_uri = lilv_new_uri(world, "http://example.org/plug");
#   32|->   env->plugin2_uri = lilv_new_uri(world, "http://example.org/foobar");
#   33|   
#   34|     // Set custom LV2_PATH in build directory to only use test data

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
lilv-0.24.26/test/lilv_test_utils.c:32:22: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
lilv-0.24.26/test/lilv_test_utils.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/lilv_test_utils.c:28:36: branch_false: ...to here
lilv-0.24.26/test/lilv_test_utils.c:28:36: acquire_memory: allocated here
lilv-0.24.26/test/lilv_test_utils.c:32:22: throw: if ‘lilv_new_uri’ throws an exception...
lilv-0.24.26/test/lilv_test_utils.c:32:22: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   30|     env->world       = world;
#   31|     env->plugin1_uri = lilv_new_uri(world, "http://example.org/plug");
#   32|->   env->plugin2_uri = lilv_new_uri(world, "http://example.org/foobar");
#   33|   
#   34|     // Set custom LV2_PATH in build directory to only use test data

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
lilv-0.24.26/test/lilv_test_utils.c:35:25: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
lilv-0.24.26/test/lilv_test_utils.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/lilv_test_utils.c:28:36: branch_false: ...to here
lilv-0.24.26/test/lilv_test_utils.c:28:36: acquire_memory: allocated here
lilv-0.24.26/test/lilv_test_utils.c:35:25: throw: if ‘zix_canonical_path’ throws an exception...
lilv-0.24.26/test/lilv_test_utils.c:35:25: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   33|   
#   34|     // Set custom LV2_PATH in build directory to only use test data
#   35|->   char*     test_path = zix_canonical_path(NULL, LILV_TEST_DIR);
#   36|     char*     lv2_path  = zix_path_join(NULL, test_path, "lv2");
#   37|     LilvNode* path      = lilv_new_string(world, lv2_path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
lilv-0.24.26/test/lilv_test_utils.c:36:25: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
lilv-0.24.26/test/lilv_test_utils.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/lilv_test_utils.c:28:36: branch_false: ...to here
lilv-0.24.26/test/lilv_test_utils.c:28:36: acquire_memory: allocated here
lilv-0.24.26/test/lilv_test_utils.c:36:25: throw: if ‘zix_path_join’ throws an exception...
lilv-0.24.26/test/lilv_test_utils.c:36:25: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   34|     // Set custom LV2_PATH in build directory to only use test data
#   35|     char*     test_path = zix_canonical_path(NULL, LILV_TEST_DIR);
#   36|->   char*     lv2_path  = zix_path_join(NULL, test_path, "lv2");
#   37|     LilvNode* path      = lilv_new_string(world, lv2_path);
#   38|     lilv_world_set_option(world, LILV_OPTION_LV2_PATH, path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
lilv-0.24.26/test/lilv_test_utils.c:37:25: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
lilv-0.24.26/test/lilv_test_utils.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/lilv_test_utils.c:28:36: branch_false: ...to here
lilv-0.24.26/test/lilv_test_utils.c:28:36: acquire_memory: allocated here
lilv-0.24.26/test/lilv_test_utils.c:37:25: throw: if ‘lilv_new_string’ throws an exception...
lilv-0.24.26/test/lilv_test_utils.c:37:25: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#   35|     char*     test_path = zix_canonical_path(NULL, LILV_TEST_DIR);
#   36|     char*     lv2_path  = zix_path_join(NULL, test_path, "lv2");
#   37|->   LilvNode* path      = lilv_new_string(world, lv2_path);
#   38|     lilv_world_set_option(world, LILV_OPTION_LV2_PATH, path);
#   39|     lilv_node_free(path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
lilv-0.24.26/test/lilv_test_utils.c:38:3: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
lilv-0.24.26/test/lilv_test_utils.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/lilv_test_utils.c:28:36: branch_false: ...to here
lilv-0.24.26/test/lilv_test_utils.c:28:36: acquire_memory: allocated here
lilv-0.24.26/test/lilv_test_utils.c:38:3: throw: if ‘lilv_world_set_option’ throws an exception...
lilv-0.24.26/test/lilv_test_utils.c:38:3: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#   36|     char*     lv2_path  = zix_path_join(NULL, test_path, "lv2");
#   37|     LilvNode* path      = lilv_new_string(world, lv2_path);
#   38|->   lilv_world_set_option(world, LILV_OPTION_LV2_PATH, path);
#   39|     lilv_node_free(path);
#   40|     zix_free(NULL, lv2_path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
lilv-0.24.26/test/lilv_test_utils.c:39:3: warning[-Wanalyzer-malloc-leak]: leak of ‘env’
lilv-0.24.26/test/lilv_test_utils.c:24:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/lilv_test_utils.c:28:36: branch_false: ...to here
lilv-0.24.26/test/lilv_test_utils.c:28:36: acquire_memory: allocated here
lilv-0.24.26/test/lilv_test_utils.c:39:3: throw: if ‘lilv_node_free’ throws an exception...
lilv-0.24.26/test/lilv_test_utils.c:39:3: danger: ‘env’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#   37|     LilvNode* path      = lilv_new_string(world, lv2_path);
#   38|     lilv_world_set_option(world, LILV_OPTION_LV2_PATH, path);
#   39|->   lilv_node_free(path);
#   40|     zix_free(NULL, lv2_path);
#   41|     zix_free(NULL, test_path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:87:24: warning[-Wanalyzer-malloc-leak]: leak of ‘test’
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:82:23: acquire_memory: allocated here
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:83:6: branch_false: following ‘false’ branch (when ‘test’ is non-NULL)...
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:87:24: branch_false: ...to here
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:87:24: throw: if ‘zix_temp_directory_path’ throws an exception...
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:87:24: danger: ‘test’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   85|     }
#   86|   
#   87|->   test->tmp_dir_path = zix_temp_directory_path(NULL);
#   88|   
#   89|     LV2_State_Make_Path* make_path = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test’
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:82:23: acquire_memory: allocated here
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:83:6: branch_false: following ‘false’ branch (when ‘test’ is non-NULL)...
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:87:24: branch_false: ...to here
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:91:19: branch_true: following ‘true’ branch...
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:92:17: branch_true: ...to here
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:92:8: branch_true: following ‘true’ branch (when the strings are equal)...
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:93:34: branch_true: ...to here
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:95:9: throw: if the called function throws an exception...
lilv-0.24.26/test/test_plugin.lv2/test_plugin.c:95:9: danger: ‘test’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   93|         test->map = (LV2_URID_Map*)features[i]->data;
#   94|         test->uris.atom_Float =
#   95|->         test->map->map(test->map->handle, LV2_ATOM__Float);
#   96|       } else if (!strcmp(features[i]->URI, LV2_STATE__makePath)) {
#   97|         make_path = (LV2_State_Make_Path*)features[i]->data;

Error: CPPCHECK_WARNING (CWE-476): [#def203]
lilv-0.24.26/test/test_state.c:66: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   64|     lilv_test_uri_map_init(&ctx->uri_map);
#   65|   
#   66|->   ctx->env                    = lilv_test_env_new();
#   67|     ctx->map.handle             = &ctx->uri_map;
#   68|     ctx->map.map                = map_uri;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
lilv-0.24.26/test/test_state.c:66:33: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
lilv-0.24.26/test/test_state.c:60:1: enter_function: entry to ‘test_context_new’
lilv-0.24.26/test/test_state.c:62:36: acquire_memory: allocated here
lilv-0.24.26/test/test_state.c:64:3: call_function: inlined call to ‘lilv_test_uri_map_init’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:66:33: throw: if ‘lilv_test_env_new’ throws an exception...
lilv-0.24.26/test/test_state.c:66:33: danger: ‘ctx’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#   64|     lilv_test_uri_map_init(&ctx->uri_map);
#   65|   
#   66|->   ctx->env                    = lilv_test_env_new();
#   67|     ctx->map.handle             = &ctx->uri_map;
#   68|     ctx->map.map                = map_uri;

Error: CPPCHECK_WARNING (CWE-476): [#def205]
lilv-0.24.26/test/test_state.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   65|   
#   66|     ctx->env                    = lilv_test_env_new();
#   67|->   ctx->map.handle             = &ctx->uri_map;
#   68|     ctx->map.map                = map_uri;
#   69|     ctx->map_feature.URI        = LV2_URID_MAP_URI;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
lilv-0.24.26/test/test_state.c:67:33: warning[-Wanalyzer-malloc-leak]: leak of ‘test_context_new()’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#   65|   
#   66|     ctx->env                    = lilv_test_env_new();
#   67|->   ctx->map.handle             = &ctx->uri_map;
#   68|     ctx->map.map                = map_uri;
#   69|     ctx->map_feature.URI        = LV2_URID_MAP_URI;

Error: CPPCHECK_WARNING (CWE-476): [#def207]
lilv-0.24.26/test/test_state.c:68: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   66|     ctx->env                    = lilv_test_env_new();
#   67|     ctx->map.handle             = &ctx->uri_map;
#   68|->   ctx->map.map                = map_uri;
#   69|     ctx->map_feature.URI        = LV2_URID_MAP_URI;
#   70|     ctx->map_feature.data       = &ctx->map;

Error: CPPCHECK_WARNING (CWE-476): [#def208]
lilv-0.24.26/test/test_state.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   67|     ctx->map.handle             = &ctx->uri_map;
#   68|     ctx->map.map                = map_uri;
#   69|->   ctx->map_feature.URI        = LV2_URID_MAP_URI;
#   70|     ctx->map_feature.data       = &ctx->map;
#   71|     ctx->unmap.handle           = &ctx->uri_map;

Error: CPPCHECK_WARNING (CWE-476): [#def209]
lilv-0.24.26/test/test_state.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   68|     ctx->map.map                = map_uri;
#   69|     ctx->map_feature.URI        = LV2_URID_MAP_URI;
#   70|->   ctx->map_feature.data       = &ctx->map;
#   71|     ctx->unmap.handle           = &ctx->uri_map;
#   72|     ctx->unmap.unmap            = unmap_uri;

Error: CPPCHECK_WARNING (CWE-476): [#def210]
lilv-0.24.26/test/test_state.c:71: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   69|     ctx->map_feature.URI        = LV2_URID_MAP_URI;
#   70|     ctx->map_feature.data       = &ctx->map;
#   71|->   ctx->unmap.handle           = &ctx->uri_map;
#   72|     ctx->unmap.unmap            = unmap_uri;
#   73|     ctx->unmap_feature.URI      = LV2_URID_UNMAP_URI;

Error: CPPCHECK_WARNING (CWE-476): [#def211]
lilv-0.24.26/test/test_state.c:72: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   70|     ctx->map_feature.data       = &ctx->map;
#   71|     ctx->unmap.handle           = &ctx->uri_map;
#   72|->   ctx->unmap.unmap            = unmap_uri;
#   73|     ctx->unmap_feature.URI      = LV2_URID_UNMAP_URI;
#   74|     ctx->unmap_feature.data     = &ctx->unmap;

Error: CPPCHECK_WARNING (CWE-476): [#def212]
lilv-0.24.26/test/test_state.c:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   71|     ctx->unmap.handle           = &ctx->uri_map;
#   72|     ctx->unmap.unmap            = unmap_uri;
#   73|->   ctx->unmap_feature.URI      = LV2_URID_UNMAP_URI;
#   74|     ctx->unmap_feature.data     = &ctx->unmap;
#   75|     ctx->free_path.free_path    = lilv_free_path;

Error: CPPCHECK_WARNING (CWE-476): [#def213]
lilv-0.24.26/test/test_state.c:74: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   72|     ctx->unmap.unmap            = unmap_uri;
#   73|     ctx->unmap_feature.URI      = LV2_URID_UNMAP_URI;
#   74|->   ctx->unmap_feature.data     = &ctx->unmap;
#   75|     ctx->free_path.free_path    = lilv_free_path;
#   76|     ctx->free_path_feature.URI  = LV2_STATE__freePath;

Error: CPPCHECK_WARNING (CWE-476): [#def214]
lilv-0.24.26/test/test_state.c:75: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   73|     ctx->unmap_feature.URI      = LV2_URID_UNMAP_URI;
#   74|     ctx->unmap_feature.data     = &ctx->unmap;
#   75|->   ctx->free_path.free_path    = lilv_free_path;
#   76|     ctx->free_path_feature.URI  = LV2_STATE__freePath;
#   77|     ctx->free_path_feature.data = &ctx->free_path;

Error: CPPCHECK_WARNING (CWE-476): [#def215]
lilv-0.24.26/test/test_state.c:76: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   74|     ctx->unmap_feature.data     = &ctx->unmap;
#   75|     ctx->free_path.free_path    = lilv_free_path;
#   76|->   ctx->free_path_feature.URI  = LV2_STATE__freePath;
#   77|     ctx->free_path_feature.data = &ctx->free_path;
#   78|     ctx->features[0]            = &ctx->map_feature;

Error: CPPCHECK_WARNING (CWE-476): [#def216]
lilv-0.24.26/test/test_state.c:77: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   75|     ctx->free_path.free_path    = lilv_free_path;
#   76|     ctx->free_path_feature.URI  = LV2_STATE__freePath;
#   77|->   ctx->free_path_feature.data = &ctx->free_path;
#   78|     ctx->features[0]            = &ctx->map_feature;
#   79|     ctx->features[1]            = &ctx->unmap_feature;

Error: CPPCHECK_WARNING (CWE-476): [#def217]
lilv-0.24.26/test/test_state.c:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   76|     ctx->free_path_feature.URI  = LV2_STATE__freePath;
#   77|     ctx->free_path_feature.data = &ctx->free_path;
#   78|->   ctx->features[0]            = &ctx->map_feature;
#   79|     ctx->features[1]            = &ctx->unmap_feature;
#   80|     ctx->features[2]            = &ctx->free_path_feature;

Error: CPPCHECK_WARNING (CWE-476): [#def218]
lilv-0.24.26/test/test_state.c:79: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   77|     ctx->free_path_feature.data = &ctx->free_path;
#   78|     ctx->features[0]            = &ctx->map_feature;
#   79|->   ctx->features[1]            = &ctx->unmap_feature;
#   80|     ctx->features[2]            = &ctx->free_path_feature;
#   81|     ctx->features[3]            = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def219]
lilv-0.24.26/test/test_state.c:80: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   78|     ctx->features[0]            = &ctx->map_feature;
#   79|     ctx->features[1]            = &ctx->unmap_feature;
#   80|->   ctx->features[2]            = &ctx->free_path_feature;
#   81|     ctx->features[3]            = NULL;
#   82|   

Error: CPPCHECK_WARNING (CWE-476): [#def220]
lilv-0.24.26/test/test_state.c:81: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   79|     ctx->features[1]            = &ctx->unmap_feature;
#   80|     ctx->features[2]            = &ctx->free_path_feature;
#   81|->   ctx->features[3]            = NULL;
#   82|   
#   83|     ctx->atom_Float =

Error: CPPCHECK_WARNING (CWE-476): [#def221]
lilv-0.24.26/test/test_state.c:83: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   81|     ctx->features[3]            = NULL;
#   82|   
#   83|->   ctx->atom_Float =
#   84|       map_uri(&ctx->uri_map, "http://lv2plug.in/ns/ext/atom#Float");
#   85|   

Error: CPPCHECK_WARNING (CWE-476): [#def222]
lilv-0.24.26/test/test_state.c:86: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   84|       map_uri(&ctx->uri_map, "http://lv2plug.in/ns/ext/atom#Float");
#   85|   
#   86|->   ctx->in      = 1.0;
#   87|     ctx->out     = 42.0;
#   88|     ctx->control = 1234.0;

Error: CPPCHECK_WARNING (CWE-476): [#def223]
lilv-0.24.26/test/test_state.c:87: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   85|   
#   86|     ctx->in      = 1.0;
#   87|->   ctx->out     = 42.0;
#   88|     ctx->control = 1234.0;
#   89|   

Error: CPPCHECK_WARNING (CWE-476): [#def224]
lilv-0.24.26/test/test_state.c:88: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ctx
#   86|     ctx->in      = 1.0;
#   87|     ctx->out     = 42.0;
#   88|->   ctx->control = 1234.0;
#   89|   
#   90|     return ctx;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
lilv-0.24.26/test/test_state.c:106:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#  104|     TestDirectories dirs;
#  105|   
#  106|->   char* const top = lilv_create_temporary_directory("lilv_XXXXXX");
#  107|     assert(top);
#  108|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
lilv-0.24.26/test/test_state.c:112:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#  110|        resolve it here so that path comparisons in tests work. */
#  111|   
#  112|->   dirs.top     = zix_canonical_path(NULL, top);
#  113|     dirs.shared  = zix_path_join(NULL, dirs.top, "shared");
#  114|     dirs.scratch = zix_path_join(NULL, dirs.shared, "scratch");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
lilv-0.24.26/test/test_state.c:113:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#  111|   
#  112|     dirs.top     = zix_canonical_path(NULL, top);
#  113|->   dirs.shared  = zix_path_join(NULL, dirs.top, "shared");
#  114|     dirs.scratch = zix_path_join(NULL, dirs.shared, "scratch");
#  115|     dirs.copy    = zix_path_join(NULL, dirs.shared, "copy");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
lilv-0.24.26/test/test_state.c:114:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#  112|     dirs.top     = zix_canonical_path(NULL, top);
#  113|     dirs.shared  = zix_path_join(NULL, dirs.top, "shared");
#  114|->   dirs.scratch = zix_path_join(NULL, dirs.shared, "scratch");
#  115|     dirs.copy    = zix_path_join(NULL, dirs.shared, "copy");
#  116|     dirs.link    = zix_path_join(NULL, dirs.shared, "link");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
lilv-0.24.26/test/test_state.c:115:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#  113|     dirs.shared  = zix_path_join(NULL, dirs.top, "shared");
#  114|     dirs.scratch = zix_path_join(NULL, dirs.shared, "scratch");
#  115|->   dirs.copy    = zix_path_join(NULL, dirs.shared, "copy");
#  116|     dirs.link    = zix_path_join(NULL, dirs.shared, "link");
#  117|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
lilv-0.24.26/test/test_state.c:116:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#  114|     dirs.scratch = zix_path_join(NULL, dirs.shared, "scratch");
#  115|     dirs.copy    = zix_path_join(NULL, dirs.shared, "copy");
#  116|->   dirs.link    = zix_path_join(NULL, dirs.shared, "link");
#  117|   
#  118|     assert(dirs.top);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
lilv-0.24.26/test/test_state.c:124:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#  122|     assert(dirs.link);
#  123|   
#  124|->   assert(!zix_create_directory(dirs.shared));
#  125|     assert(!zix_create_directory(dirs.scratch));
#  126|     assert(!zix_create_directory(dirs.copy));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
lilv-0.24.26/test/test_state.c:125:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1042:1: enter_function: entry to ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: call_function: calling ‘test_context_new’ from ‘test_delete’
lilv-0.24.26/test/test_state.c:1044:36: return_function: returning to ‘test_delete’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1045:36: call_function: calling ‘create_test_directories’ from ‘test_delete’
#  123|   
#  124|     assert(!zix_create_directory(dirs.shared));
#  125|->   assert(!zix_create_directory(dirs.scratch));
#  126|     assert(!zix_create_directory(dirs.copy));
#  127|     assert(!zix_create_directory(dirs.link));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
lilv-0.24.26/test/test_state.c:240:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:480:1: enter_function: entry to ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: call_function: calling ‘test_context_new’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: return_function: returning to ‘test_string_round_trip’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:484:36: call_function: calling ‘load_test_plugin’ from ‘test_string_round_trip’
#  238|   {
#  239|     LilvWorld* world      = ctx->env->world;
#  240|->   LilvNode*  bundle_uri = lilv_new_file_uri(world, NULL, LILV_TEST_BUNDLE);
#  241|     LilvNode*  plugin_uri = lilv_new_uri(world, TEST_PLUGIN_URI);
#  242|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
lilv-0.24.26/test/test_state.c:241:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:480:1: enter_function: entry to ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: call_function: calling ‘test_context_new’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: return_function: returning to ‘test_string_round_trip’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:484:36: call_function: calling ‘load_test_plugin’ from ‘test_string_round_trip’
#  239|     LilvWorld* world      = ctx->env->world;
#  240|     LilvNode*  bundle_uri = lilv_new_file_uri(world, NULL, LILV_TEST_BUNDLE);
#  241|->   LilvNode*  plugin_uri = lilv_new_uri(world, TEST_PLUGIN_URI);
#  242|   
#  243|     lilv_world_load_bundle(world, bundle_uri);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
lilv-0.24.26/test/test_state.c:243:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:480:1: enter_function: entry to ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: call_function: calling ‘test_context_new’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: return_function: returning to ‘test_string_round_trip’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:484:36: call_function: calling ‘load_test_plugin’ from ‘test_string_round_trip’
#  241|     LilvNode*  plugin_uri = lilv_new_uri(world, TEST_PLUGIN_URI);
#  242|   
#  243|->   lilv_world_load_bundle(world, bundle_uri);
#  244|   
#  245|     const LilvPlugins* plugins = lilv_world_get_all_plugins(world);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
lilv-0.24.26/test/test_state.c:245:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:480:1: enter_function: entry to ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: call_function: calling ‘test_context_new’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: return_function: returning to ‘test_string_round_trip’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:484:36: call_function: calling ‘load_test_plugin’ from ‘test_string_round_trip’
#  243|     lilv_world_load_bundle(world, bundle_uri);
#  244|   
#  245|->   const LilvPlugins* plugins = lilv_world_get_all_plugins(world);
#  246|     const LilvPlugin*  plugin  = lilv_plugins_get_by_uri(plugins, plugin_uri);
#  247|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
lilv-0.24.26/test/test_state.c:246:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:480:1: enter_function: entry to ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: call_function: calling ‘test_context_new’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: return_function: returning to ‘test_string_round_trip’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:484:36: call_function: calling ‘load_test_plugin’ from ‘test_string_round_trip’
#  244|   
#  245|     const LilvPlugins* plugins = lilv_world_get_all_plugins(world);
#  246|->   const LilvPlugin*  plugin  = lilv_plugins_get_by_uri(plugins, plugin_uri);
#  247|   
#  248|     lilv_node_free(plugin_uri);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
lilv-0.24.26/test/test_state.c:248:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:480:1: enter_function: entry to ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: call_function: calling ‘test_context_new’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: return_function: returning to ‘test_string_round_trip’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:484:36: call_function: calling ‘load_test_plugin’ from ‘test_string_round_trip’
#  246|     const LilvPlugin*  plugin  = lilv_plugins_get_by_uri(plugins, plugin_uri);
#  247|   
#  248|->   lilv_node_free(plugin_uri);
#  249|     lilv_node_free(bundle_uri);
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
lilv-0.24.26/test/test_state.c:249:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:480:1: enter_function: entry to ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: call_function: calling ‘test_context_new’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: return_function: returning to ‘test_string_round_trip’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:484:36: call_function: calling ‘load_test_plugin’ from ‘test_string_round_trip’
#  247|   
#  248|     lilv_node_free(plugin_uri);
#  249|->   lilv_node_free(bundle_uri);
#  250|   
#  251|     assert(plugin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
lilv-0.24.26/test/test_state.c:282:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:276:1: enter_function: entry to ‘test_instance_state’
lilv-0.24.26/test/test_state.c:278:36: call_function: calling ‘test_context_new’ from ‘test_instance_state’
lilv-0.24.26/test/test_state.c:278:36: return_function: returning to ‘test_instance_state’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:280:36: call_function: calling ‘load_test_plugin’ from ‘test_instance_state’
lilv-0.24.26/test/test_state.c:280:36: return_function: returning to ‘test_instance_state’ from ‘load_test_plugin’
lilv-0.24.26/test/test_state.c:282:5: throw: if ‘lilv_plugin_instantiate’ throws an exception...
lilv-0.24.26/test/test_state.c:282:5: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/9)
#  280|     const LilvPlugin* const plugin = load_test_plugin(ctx);
#  281|     LilvInstance* const     instance =
#  282|->     lilv_plugin_instantiate(plugin, 48000.0, ctx->features);
#  283|   
#  284|     assert(instance);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
lilv-0.24.26/test/test_state.c:315:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:309:1: enter_function: entry to ‘test_equal’
lilv-0.24.26/test/test_state.c:311:36: call_function: calling ‘test_context_new’ from ‘test_equal’
lilv-0.24.26/test/test_state.c:311:36: return_function: returning to ‘test_equal’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:313:36: call_function: calling ‘load_test_plugin’ from ‘test_equal’
lilv-0.24.26/test/test_state.c:313:36: return_function: returning to ‘test_equal’ from ‘load_test_plugin’
lilv-0.24.26/test/test_state.c:315:5: throw: if ‘lilv_plugin_instantiate’ throws an exception...
lilv-0.24.26/test/test_state.c:315:5: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/9)
#  313|     const LilvPlugin* const plugin = load_test_plugin(ctx);
#  314|     LilvInstance* const     instance =
#  315|->     lilv_plugin_instantiate(plugin, 48000.0, ctx->features);
#  316|   
#  317|     assert(instance);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
lilv-0.24.26/test/test_state.c:350:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:344:1: enter_function: entry to ‘test_changed_plugin_data’
lilv-0.24.26/test/test_state.c:346:36: call_function: calling ‘test_context_new’ from ‘test_changed_plugin_data’
lilv-0.24.26/test/test_state.c:346:36: return_function: returning to ‘test_changed_plugin_data’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:348:36: call_function: calling ‘load_test_plugin’ from ‘test_changed_plugin_data’
lilv-0.24.26/test/test_state.c:348:36: return_function: returning to ‘test_changed_plugin_data’ from ‘load_test_plugin’
lilv-0.24.26/test/test_state.c:350:5: throw: if ‘lilv_plugin_instantiate’ throws an exception...
lilv-0.24.26/test/test_state.c:350:5: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/9)
#  348|     const LilvPlugin* const plugin = load_test_plugin(ctx);
#  349|     LilvInstance* const     instance =
#  350|->     lilv_plugin_instantiate(plugin, 48000.0, ctx->features);
#  351|   
#  352|     assert(instance);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
lilv-0.24.26/test/test_state.c:387:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:380:1: enter_function: entry to ‘test_changed_metadata’
lilv-0.24.26/test/test_state.c:382:36: call_function: calling ‘test_context_new’ from ‘test_changed_metadata’
lilv-0.24.26/test/test_state.c:382:36: return_function: returning to ‘test_changed_metadata’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:385:36: call_function: calling ‘load_test_plugin’ from ‘test_changed_metadata’
lilv-0.24.26/test/test_state.c:385:36: return_function: returning to ‘test_changed_metadata’ from ‘load_test_plugin’
lilv-0.24.26/test/test_state.c:387:5: throw: if ‘lilv_plugin_instantiate’ throws an exception...
lilv-0.24.26/test/test_state.c:387:5: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/9)
#  385|     const LilvPlugin* const plugin = load_test_plugin(ctx);
#  386|     LilvInstance* const     instance =
#  387|->     lilv_plugin_instantiate(plugin, 48000.0, ctx->features);
#  388|   
#  389|     assert(instance);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
lilv-0.24.26/test/test_state.c:447:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:441:1: enter_function: entry to ‘test_to_string’
lilv-0.24.26/test/test_state.c:443:36: call_function: calling ‘test_context_new’ from ‘test_to_string’
lilv-0.24.26/test/test_state.c:443:36: return_function: returning to ‘test_to_string’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:445:36: call_function: calling ‘load_test_plugin’ from ‘test_to_string’
lilv-0.24.26/test/test_state.c:445:36: return_function: returning to ‘test_to_string’ from ‘load_test_plugin’
lilv-0.24.26/test/test_state.c:447:5: throw: if ‘lilv_plugin_instantiate’ throws an exception...
lilv-0.24.26/test/test_state.c:447:5: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/9)
#  445|     const LilvPlugin* const plugin = load_test_plugin(ctx);
#  446|     LilvInstance* const     instance =
#  447|->     lilv_plugin_instantiate(plugin, 48000.0, ctx->features);
#  448|   
#  449|     assert(instance);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
lilv-0.24.26/test/test_state.c:486:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:480:1: enter_function: entry to ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: call_function: calling ‘test_context_new’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:482:36: return_function: returning to ‘test_string_round_trip’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:484:36: call_function: calling ‘load_test_plugin’ from ‘test_string_round_trip’
lilv-0.24.26/test/test_state.c:484:36: return_function: returning to ‘test_string_round_trip’ from ‘load_test_plugin’
lilv-0.24.26/test/test_state.c:486:5: throw: if ‘lilv_plugin_instantiate’ throws an exception...
lilv-0.24.26/test/test_state.c:486:5: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/9)
#  484|     const LilvPlugin* const plugin = load_test_plugin(ctx);
#  485|     LilvInstance* const     instance =
#  486|->     lilv_plugin_instantiate(plugin, 48000.0, ctx->features);
#  487|   
#  488|     assert(instance);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
lilv-0.24.26/test/test_state.c:1004:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1001:1: enter_function: entry to ‘test_bad_subject’
lilv-0.24.26/test/test_state.c:1003:31: call_function: calling ‘test_context_new’ from ‘test_bad_subject’
lilv-0.24.26/test/test_state.c:1003:31: return_function: returning to ‘test_bad_subject’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1004:31: throw: if ‘lilv_new_string’ throws an exception...
lilv-0.24.26/test/test_state.c:1004:31: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/9)
# 1002|   {
# 1003|     TestContext* const ctx    = test_context_new();
# 1004|->   LilvNode* const    string = lilv_new_string(ctx->env->world, "Not a URI");
# 1005|   
# 1006|     const LilvState* const file_state = lilv_state_new_from_file(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
lilv-0.24.26/test/test_state.c:1006:39: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1001:1: enter_function: entry to ‘test_bad_subject’
lilv-0.24.26/test/test_state.c:1003:31: call_function: calling ‘test_context_new’ from ‘test_bad_subject’
lilv-0.24.26/test/test_state.c:1003:31: return_function: returning to ‘test_bad_subject’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1006:39: throw: if ‘lilv_state_new_from_file’ throws an exception...
lilv-0.24.26/test/test_state.c:1006:39: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/9)
# 1004|     LilvNode* const    string = lilv_new_string(ctx->env->world, "Not a URI");
# 1005|   
# 1006|->   const LilvState* const file_state = lilv_state_new_from_file(
# 1007|       ctx->env->world, &ctx->map, string, "/I/do/not/matter");
# 1008|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
lilv-0.24.26/test/test_state.c:1024:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/test/test_state.c:1021:1: enter_function: entry to ‘test_missing_path’
lilv-0.24.26/test/test_state.c:1023:34: call_function: calling ‘test_context_new’ from ‘test_missing_path’
lilv-0.24.26/test/test_state.c:1023:34: return_function: returning to ‘test_missing_path’ from ‘test_context_new’
lilv-0.24.26/test/test_state.c:1024:34: throw: if ‘lilv_state_new_from_file’ throws an exception...
lilv-0.24.26/test/test_state.c:1024:34: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/9)
# 1022|   {
# 1023|     TestContext* const     ctx   = test_context_new();
# 1024|->   const LilvState* const state = lilv_state_new_from_file(
# 1025|       ctx->env->world, &ctx->map, NULL, "/does/not/exist");
# 1026|   

Error: CPPCHECK_WARNING (CWE-476): [#def249]
lilv-0.24.26/test/test_ui.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ui_binary_uri_str
#  144|   
#  145|     char* ui_binary_uri_str = (char*)calloc(1, ui_binary_uri_str_len + 1);
#  146|->   snprintf(ui_binary_uri_str,
#  147|              ui_binary_uri_str_len + 1,
#  148|              "%s%s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
lilv-0.24.26/test/test_ui.c:146:3: warning[-Wanalyzer-malloc-leak]: leak of ‘ui_binary_uri_str’
lilv-0.24.26/test/test_ui.c:85:6: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:89:3: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:94:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:96:18: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:97:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:99:41: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:100:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:102:24: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:108:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:109:3: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:109:3: branch_true: following ‘true’ branch...
lilv-0.24.26/test/test_ui.c:111:23: branch_true: ...to here
lilv-0.24.26/test/test_ui.c:112:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:114:23: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:115:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:117:24: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:118:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:120:30: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:121:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:124:5: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:129:3: branch_true: following ‘true’ branch...
lilv-0.24.26/test/test_ui.c:130:3: branch_true: ...to here
lilv-0.24.26/test/test_ui.c:130:3: branch_true: following ‘true’ branch...
lilv-0.24.26/test/test_ui.c:132:19: branch_true: ...to here
lilv-0.24.26/test/test_ui.c:133:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:134:3: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:134:3: branch_false: following ‘false’ branch...
lilv-0.24.26/test/test_ui.c:136:3: branch_false: ...to here
lilv-0.24.26/test/test_ui.c:136:3: branch_true: following ‘true’ branch...
lilv-0.24.26/test/test_ui.c:138:37: branch_true: ...to here
lilv-0.24.26/test/test_ui.c:140:3: branch_true: following ‘true’ branch...
lilv-0.24.26/test/test_ui.c:143:5: branch_true: ...to here
lilv-0.24.26/test/test_ui.c:145:36: acquire_memory: allocated here
lilv-0.24.26/test/test_ui.c:146:3: throw: if ‘lilv_node_as_string’ throws an exception...
lilv-0.24.26/test/test_ui.c:146:3: danger: ‘ui_binary_uri_str’ leaks here; was allocated at [(33)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/32)
#  144|   
#  145|     char* ui_binary_uri_str = (char*)calloc(1, ui_binary_uri_str_len + 1);
#  146|->   snprintf(ui_binary_uri_str,
#  147|              ui_binary_uri_str_len + 1,
#  148|              "%s%s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
lilv-0.24.26/tools/lv2bench.c:84:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   82|       (LV2_Atom_Sequence*)malloc(sizeof(LV2_Atom_Sequence) + atom_capacity);
#   83|   
#   84|->   const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
lilv-0.24.26/tools/lv2bench.c:84:31: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   82|       (LV2_Atom_Sequence*)malloc(sizeof(LV2_Atom_Sequence) + atom_capacity);
#   83|   
#   84|->   const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
lilv-0.24.26/tools/lv2bench.c:84:31: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   82|       (LV2_Atom_Sequence*)malloc(sizeof(LV2_Atom_Sequence) + atom_capacity);
#   83|   
#   84|->   const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
lilv-0.24.26/tools/lv2bench.c:84:31: warning[-Wanalyzer-malloc-leak]: leak of ‘uri_table.uris’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   82|       (LV2_Atom_Sequence*)malloc(sizeof(LV2_Atom_Sequence) + atom_capacity);
#   83|   
#   84|->   const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
lilv-0.24.26/tools/lv2bench.c:85:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   83|   
#   84|     const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|->   const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
lilv-0.24.26/tools/lv2bench.c:85:31: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   83|   
#   84|     const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|->   const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
lilv-0.24.26/tools/lv2bench.c:85:31: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   83|   
#   84|     const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|->   const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
lilv-0.24.26/tools/lv2bench.c:85:31: warning[-Wanalyzer-malloc-leak]: leak of ‘uri_table.uris’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   83|   
#   84|     const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|->   const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
lilv-0.24.26/tools/lv2bench.c:86:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   84|     const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|->   LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
lilv-0.24.26/tools/lv2bench.c:86:3: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   84|     const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|->   LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
lilv-0.24.26/tools/lv2bench.c:86:3: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   84|     const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|->   LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
lilv-0.24.26/tools/lv2bench.c:86:3: warning[-Wanalyzer-malloc-leak]: leak of ‘uri_table.uris’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   84|     const char*      uri      = lilv_node_as_string(lilv_plugin_get_uri(p));
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|->   LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
lilv-0.24.26/tools/lv2bench.c:87:31: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|->     const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {
#   89|         fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
lilv-0.24.26/tools/lv2bench.c:87:31: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|->     const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {
#   89|         fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
lilv-0.24.26/tools/lv2bench.c:87:31: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|->     const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {
#   89|         fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
lilv-0.24.26/tools/lv2bench.c:87:31: warning[-Wanalyzer-malloc-leak]: leak of ‘uri_table.uris’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   85|     const LilvNodes* required = lilv_plugin_get_required_features(p);
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|->     const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {
#   89|         fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
lilv-0.24.26/tools/lv2bench.c:88:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|->     if (!lilv_node_equals(feature, urid_map)) {
#   89|         fprintf(stderr,
#   90|                 "<%s> requires feature <%s>, skipping\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
lilv-0.24.26/tools/lv2bench.c:88:10: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|->     if (!lilv_node_equals(feature, urid_map)) {
#   89|         fprintf(stderr,
#   90|                 "<%s> requires feature <%s>, skipping\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
lilv-0.24.26/tools/lv2bench.c:88:10: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|->     if (!lilv_node_equals(feature, urid_map)) {
#   89|         fprintf(stderr,
#   90|                 "<%s> requires feature <%s>, skipping\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
lilv-0.24.26/tools/lv2bench.c:88:10: warning[-Wanalyzer-malloc-leak]: leak of ‘uri_table.uris’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   86|     LILV_FOREACH (nodes, i, required) {
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|->     if (!lilv_node_equals(feature, urid_map)) {
#   89|         fprintf(stderr,
#   90|                 "<%s> requires feature <%s>, skipping\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
lilv-0.24.26/tools/lv2bench.c:89:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {
#   89|->       fprintf(stderr,
#   90|                 "<%s> requires feature <%s>, skipping\n",
#   91|                 uri,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
lilv-0.24.26/tools/lv2bench.c:89:7: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {
#   89|->       fprintf(stderr,
#   90|                 "<%s> requires feature <%s>, skipping\n",
#   91|                 uri,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
lilv-0.24.26/tools/lv2bench.c:89:7: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {
#   89|->       fprintf(stderr,
#   90|                 "<%s> requires feature <%s>, skipping\n",
#   91|                 uri,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
lilv-0.24.26/tools/lv2bench.c:89:7: warning[-Wanalyzer-malloc-leak]: leak of ‘uri_table.uris’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   87|       const LilvNode* feature = lilv_nodes_get(required, i);
#   88|       if (!lilv_node_equals(feature, urid_map)) {
#   89|->       fprintf(stderr,
#   90|                 "<%s> requires feature <%s>, skipping\n",
#   91|                 uri,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
lilv-0.24.26/tools/lv2bench.c:100:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   98|     }
#   99|   
#  100|->   LilvInstance* instance = lilv_plugin_instantiate(p, 48000.0, features);
#  101|     if (!instance) {
#  102|       fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
lilv-0.24.26/tools/lv2bench.c:100:28: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   98|     }
#   99|   
#  100|->   LilvInstance* instance = lilv_plugin_instantiate(p, 48000.0, features);
#  101|     if (!instance) {
#  102|       fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
lilv-0.24.26/tools/lv2bench.c:100:28: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   98|     }
#   99|   
#  100|->   LilvInstance* instance = lilv_plugin_instantiate(p, 48000.0, features);
#  101|     if (!instance) {
#  102|       fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
lilv-0.24.26/tools/lv2bench.c:100:28: warning[-Wanalyzer-malloc-leak]: leak of ‘uri_table.uris’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#   98|     }
#   99|   
#  100|->   LilvInstance* instance = lilv_plugin_instantiate(p, 48000.0, features);
#  101|     if (!instance) {
#  102|       fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
lilv-0.24.26/tools/lv2bench.c:102:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#  100|     LilvInstance* instance = lilv_plugin_instantiate(p, 48000.0, features);
#  101|     if (!instance) {
#  102|->     fprintf(stderr,
#  103|               "Failed to instantiate <%s>\n",
#  104|               lilv_node_as_uri(lilv_plugin_get_uri(p)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
lilv-0.24.26/tools/lv2bench.c:102:5: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:247:6: branch_false: following ‘false’ branch (when ‘plugin_uri_str’ is NULL)...
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:252:5: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:253:7: branch_false: ...to here
lilv-0.24.26/tools/lv2bench.c:253:7: call_function: calling ‘bench’ from ‘main’
#  100|     LilvInstance* instance = lilv_plugin_instantiate(p, 48000.0, features);
#  101|     if (!instance) {
#  102|->     fprintf(stderr,
#  103|               "Failed to instantiate <%s>\n",
#  104|               lilv_node_as_uri(lilv_plugin_get_uri(p)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
lilv-0.24.26/tools/lv2bench.c:111:29: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  109|     }
#  110|   
#  111|->   const uint32_t n_ports  = lilv_plugin_get_num_ports(p);
#  112|     float* const   mins     = (float*)calloc(n_ports, sizeof(float));
#  113|     float* const   maxes    = (float*)calloc(n_ports, sizeof(float));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
lilv-0.24.26/tools/lv2bench.c:111:29: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  109|     }
#  110|   
#  111|->   const uint32_t n_ports  = lilv_plugin_get_num_ports(p);
#  112|     float* const   mins     = (float*)calloc(n_ports, sizeof(float));
#  113|     float* const   maxes    = (float*)calloc(n_ports, sizeof(float));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
lilv-0.24.26/tools/lv2bench.c:115:3: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  113|     float* const   maxes    = (float*)calloc(n_ports, sizeof(float));
#  114|     float* const   controls = (float*)calloc(n_ports, sizeof(float));
#  115|->   lilv_plugin_get_port_ranges_float(p, mins, maxes, controls);
#  116|   
#  117|     bool skip_plugin = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
lilv-0.24.26/tools/lv2bench.c:115:3: warning[-Wanalyzer-malloc-leak]: leak of ‘controls’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  113|     float* const   maxes    = (float*)calloc(n_ports, sizeof(float));
#  114|     float* const   controls = (float*)calloc(n_ports, sizeof(float));
#  115|->   lilv_plugin_get_port_ranges_float(p, mins, maxes, controls);
#  116|   
#  117|     bool skip_plugin = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
lilv-0.24.26/tools/lv2bench.c:115:3: warning[-Wanalyzer-malloc-leak]: leak of ‘maxes’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  113|     float* const   maxes    = (float*)calloc(n_ports, sizeof(float));
#  114|     float* const   controls = (float*)calloc(n_ports, sizeof(float));
#  115|->   lilv_plugin_get_port_ranges_float(p, mins, maxes, controls);
#  116|   
#  117|     bool skip_plugin = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
lilv-0.24.26/tools/lv2bench.c:115:3: warning[-Wanalyzer-malloc-leak]: leak of ‘mins’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  113|     float* const   maxes    = (float*)calloc(n_ports, sizeof(float));
#  114|     float* const   controls = (float*)calloc(n_ports, sizeof(float));
#  115|->   lilv_plugin_get_port_ranges_float(p, mins, maxes, controls);
#  116|   
#  117|     bool skip_plugin = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
lilv-0.24.26/tools/lv2bench.c:115:3: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  113|     float* const   maxes    = (float*)calloc(n_ports, sizeof(float));
#  114|     float* const   controls = (float*)calloc(n_ports, sizeof(float));
#  115|->   lilv_plugin_get_port_ranges_float(p, mins, maxes, controls);
#  116|   
#  117|     bool skip_plugin = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
lilv-0.24.26/tools/lv2bench.c:119:28: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  117|     bool skip_plugin = false;
#  118|     for (uint32_t index = 0; !skip_plugin && index < n_ports; ++index) {
#  119|->     const LilvPort* port = lilv_plugin_get_port_by_index(p, index);
#  120|       if (lilv_port_is_a(p, port, lv2_ControlPort)) {
#  121|         if (isnan(controls[index])) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
lilv-0.24.26/tools/lv2bench.c:119:28: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  117|     bool skip_plugin = false;
#  118|     for (uint32_t index = 0; !skip_plugin && index < n_ports; ++index) {
#  119|->     const LilvPort* port = lilv_plugin_get_port_by_index(p, index);
#  120|       if (lilv_port_is_a(p, port, lv2_ControlPort)) {
#  121|         if (isnan(controls[index])) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
lilv-0.24.26/tools/lv2bench.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  118|     for (uint32_t index = 0; !skip_plugin && index < n_ports; ++index) {
#  119|       const LilvPort* port = lilv_plugin_get_port_by_index(p, index);
#  120|->     if (lilv_port_is_a(p, port, lv2_ControlPort)) {
#  121|         if (isnan(controls[index])) {
#  122|           if (!isnan(mins[index])) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
lilv-0.24.26/tools/lv2bench.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  118|     for (uint32_t index = 0; !skip_plugin && index < n_ports; ++index) {
#  119|       const LilvPort* port = lilv_plugin_get_port_by_index(p, index);
#  120|->     if (lilv_port_is_a(p, port, lv2_ControlPort)) {
#  121|         if (isnan(controls[index])) {
#  122|           if (!isnan(mins[index])) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
lilv-0.24.26/tools/lv2bench.c:131:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  129|         }
#  130|         lilv_instance_connect_port(instance, index, &controls[index]);
#  131|->     } else if (lilv_port_is_a(p, port, lv2_AudioPort) ||
#  132|                  lilv_port_is_a(p, port, lv2_CVPort)) {
#  133|         if (lilv_port_is_a(p, port, lv2_InputPort)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
lilv-0.24.26/tools/lv2bench.c:131:16: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  129|         }
#  130|         lilv_instance_connect_port(instance, index, &controls[index]);
#  131|->     } else if (lilv_port_is_a(p, port, lv2_AudioPort) ||
#  132|                  lilv_port_is_a(p, port, lv2_CVPort)) {
#  133|         if (lilv_port_is_a(p, port, lv2_InputPort)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
lilv-0.24.26/tools/lv2bench.c:132:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  130|         lilv_instance_connect_port(instance, index, &controls[index]);
#  131|       } else if (lilv_port_is_a(p, port, lv2_AudioPort) ||
#  132|->                lilv_port_is_a(p, port, lv2_CVPort)) {
#  133|         if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  134|           lilv_instance_connect_port(instance, index, in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
lilv-0.24.26/tools/lv2bench.c:132:16: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  130|         lilv_instance_connect_port(instance, index, &controls[index]);
#  131|       } else if (lilv_port_is_a(p, port, lv2_AudioPort) ||
#  132|->                lilv_port_is_a(p, port, lv2_CVPort)) {
#  133|         if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  134|           lilv_instance_connect_port(instance, index, in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
lilv-0.24.26/tools/lv2bench.c:133:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  131|       } else if (lilv_port_is_a(p, port, lv2_AudioPort) ||
#  132|                  lilv_port_is_a(p, port, lv2_CVPort)) {
#  133|->       if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  134|           lilv_instance_connect_port(instance, index, in);
#  135|         } else if (lilv_port_is_a(p, port, lv2_OutputPort)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
lilv-0.24.26/tools/lv2bench.c:133:11: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  131|       } else if (lilv_port_is_a(p, port, lv2_AudioPort) ||
#  132|                  lilv_port_is_a(p, port, lv2_CVPort)) {
#  133|->       if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  134|           lilv_instance_connect_port(instance, index, in);
#  135|         } else if (lilv_port_is_a(p, port, lv2_OutputPort)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
lilv-0.24.26/tools/lv2bench.c:135:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  133|         if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  134|           lilv_instance_connect_port(instance, index, in);
#  135|->       } else if (lilv_port_is_a(p, port, lv2_OutputPort)) {
#  136|           lilv_instance_connect_port(instance, index, out);
#  137|         } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
lilv-0.24.26/tools/lv2bench.c:135:18: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  133|         if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  134|           lilv_instance_connect_port(instance, index, in);
#  135|->       } else if (lilv_port_is_a(p, port, lv2_OutputPort)) {
#  136|           lilv_instance_connect_port(instance, index, out);
#  137|         } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
lilv-0.24.26/tools/lv2bench.c:144:16: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  142|           skip_plugin = true;
#  143|         }
#  144|->     } else if (lilv_port_is_a(p, port, atom_AtomPort)) {
#  145|         if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  146|           lilv_instance_connect_port(instance, index, &seq_in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
lilv-0.24.26/tools/lv2bench.c:144:16: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  142|           skip_plugin = true;
#  143|         }
#  144|->     } else if (lilv_port_is_a(p, port, atom_AtomPort)) {
#  145|         if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  146|           lilv_instance_connect_port(instance, index, &seq_in);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
lilv-0.24.26/tools/lv2bench.c:145:11: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  143|         }
#  144|       } else if (lilv_port_is_a(p, port, atom_AtomPort)) {
#  145|->       if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  146|           lilv_instance_connect_port(instance, index, &seq_in);
#  147|         } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
lilv-0.24.26/tools/lv2bench.c:145:11: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  143|         }
#  144|       } else if (lilv_port_is_a(p, port, atom_AtomPort)) {
#  145|->       if (lilv_port_is_a(p, port, lv2_InputPort)) {
#  146|           lilv_instance_connect_port(instance, index, &seq_in);
#  147|         } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
lilv-0.24.26/tools/lv2bench.c:183:3: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  181|     free(maxes);
#  182|     free(mins);
#  183|->   lilv_instance_free(instance);
#  184|     free(seq_out);
#  185|     free(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
lilv-0.24.26/tools/lv2bench.c:183:3: warning[-Wanalyzer-malloc-leak]: leak of ‘seq_out’
lilv-0.24.26/tools/lv2bench.c:191:1: enter_function: entry to ‘main’
lilv-0.24.26/tools/lv2bench.c:198:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:203:8: branch_false: following ‘false’ branch...
lilv-0.24.26/tools/lv2bench.c:220:15: branch_true: following ‘true’ branch...
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:228:38: branch_true: following ‘true’ branch (when ‘a < argc’)...
lilv-0.24.26/tools/lv2bench.c:228:55: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:247:6: branch_true: following ‘true’ branch (when ‘plugin_uri_str’ is non-NULL)...
lilv-0.24.26/tools/lv2bench.c:248:21: branch_true: ...to here
lilv-0.24.26/tools/lv2bench.c:249:5: call_function: calling ‘bench’ from ‘main’
#  181|     free(maxes);
#  182|     free(mins);
#  183|->   lilv_instance_free(instance);
#  184|     free(seq_out);
#  185|     free(buf);

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-175.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelilv-0.26.2-1.fc44
diffbase-store-results-to/tmp/tmpiyk_n58l/lilv-0.26.2-1.fc44.tar.xz
diffbase-time-created2026-01-08 19:23:08
diffbase-time-finished2026-01-08 19:24:37
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpiyk_n58l/lilv-0.26.2-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpiyk_n58l/lilv-0.26.2-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-175.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelilv-0.24.26-7.fc43
store-results-to/tmp/tmpfi68ng69/lilv-0.24.26-7.fc43.tar.xz
time-created2026-01-08 19:20:40
time-finished2026-01-08 19:22:41
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpfi68ng69/lilv-0.24.26-7.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfi68ng69/lilv-0.24.26-7.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9