Fix: segmentation fault ConfigFileParser_createModelFromConfigFile on invalid format

pull/341/head
Walter Bonetti 4 years ago
parent bb64d9d8fe
commit 290dbc3168

@ -560,6 +560,7 @@ exit_error:
if (DEBUG_IED_SERVER)
printf("IED_SERVER: error parsing line %i (indentation level = %i)\n", currentLine, indendation);
if (model != NULL)
IedModel_destroy(model);
return NULL;
}

Loading…
Cancel
Save