Update carg-parse.c

This commit is contained in:
AUnicornWithNoLife 2023-09-17 19:31:21 +01:00
parent 6941801bc5
commit 2dabc6d4ff

View File

@ -92,24 +92,10 @@ carg_parse_data* carg_parse(int argc, char** argv)
void carg_parse_free(carg_parse_data* data)
{
if (data->values != NULL)
{
free(data->values);
}
if (data->lv_labels != NULL)
{
free(data->lv_labels);
}
if (data->lv_values != NULL)
{
free(data->lv_values);
}
if (data->flags != NULL)
{
free(data->flags);
}
free(data->values);
free(data->lv_labels);
free(data->lv_values);
free(data->flags);
free(data);
}