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

This commit is contained in:
Andrey Volk committed 2021-03-17 18:54:36 +03:00
1 parent 29b5043904
commit c8e7a57b4c
1 file changed
+6
+6
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;
}
}