Skip to content
Snippets Groups Projects
Commit 475ad9d1 authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Leak fix

parent b85e227d
No related branches found
No related tags found
1 merge request!499Leak fix
Pipeline #50957 passed with stage
in 12 minutes and 49 seconds
......@@ -276,6 +276,8 @@ static int _dap_config_load(const char* a_abs_path, dap_config_t **a_conf) {
HASH_ADD_KEYPTR(hh, (*a_conf)->items, l_item->name, strlen(l_item->name), l_item);
} else {
DAP_DELETE(l_name);
if ( l_type == DAP_CONFIG_ITEM_STRING )
DAP_DELETE(l_item->val.val_str);
}
l_item->type = l_type;
l_item->val = l_item_val;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment