Skip to content

Commit

Permalink
Struct definition leak
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenhauer committed Jan 3, 2024
1 parent b19d10c commit b497086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/adios2/toolkit/format/bp5/BP5Serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,13 @@ BP5Serializer::BP5WriterRec BP5Serializer::CreateWriterRec(void *Variable, const
{"complex4", fcomplex_field_list, sizeof(fcomplex_struct), NULL},
{"complex8", dcomplex_field_list, sizeof(dcomplex_struct), NULL},
{NULL, NULL, 0, NULL}};
struct_list[0].format_name = SD->StructName().c_str();
struct_list[0].format_name = strdup(SD->StructName().c_str());
struct_list[0].field_list = List;
struct_list[0].struct_size = (int)SD->StructSize();

FMFormat Format = register_data_format(Info.LocalFMContext, &struct_list[0]);
free_FMfield_list(List);
free(struct_list[0].format_name);

int IDLength;
char *ServerID = get_server_ID_FMformat(Format, &IDLength);
Expand Down

0 comments on commit b497086

Please sign in to comment.