[Unit-Tests] Fix leak of arg in the case of an error in fct_clp__parse()

This commit is contained in:
Andrey Volk 2021-01-20 22:31:35 +03:00
parent 29b5043904
commit c8e7a57b4c

View File

@ -1716,6 +1716,12 @@ fct_clp__parse(fct_clp_t *clp, int argc, char const *argv[])
arg =NULL;
}
}
if (arg != NULL)
{
free(arg);
arg = NULL;
}
}