mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
[Unit-Tests] Fix leak of arg in the case of an error in fct_clp__parse()
This commit is contained in:
parent
29b5043904
commit
c8e7a57b4c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user