cgfsng: free_string_list()

parent 758cf80e
......@@ -188,13 +188,15 @@ static bool lxc_cgfsng_debug;
static void free_string_list(char **clist)
{
if (clist) {
int i;
int i;
for (i = 0; clist[i]; i++)
free(clist[i]);
free(clist);
}
if (!clist)
return;
for (i = 0; clist[i]; i++)
free(clist[i]);
free(clist);
}
/* Allocate a pointer, do not fail */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment