Freeing ptr_field_name after use

master
Jimmi HC 2018-05-09 09:40:57 +02:00
parent 9b29c872ce
commit 2a74aa2067
1 changed files with 1 additions and 0 deletions

View File

@ -16445,6 +16445,7 @@ static ConstExprValue *ir_make_type_info_value(IrAnalyze *ira, TypeTableEntry *t
buf_init_from_str(&ptr_field_name, "ptr");
TypeTableEntry *ptr_type = type_entry->data.structure.fields_by_name.get(&ptr_field_name)->type_entry;
ensure_complete_type(ira->codegen, ptr_type);
buf_deinit(&ptr_field_name);
result = create_ptr_like_type_info("Slice", ptr_type);
break;