Skip to content

Commit

Permalink
lxccontainer: free_init_cmd()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Aug 23, 2018
1 parent 9a65270 commit 69d4644
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lxc/lxccontainer.c
Expand Up @@ -735,8 +735,10 @@ static void free_init_cmd(char **argv)

if (!argv)
return;

while (argv[i])
free(argv[i++]);

free(argv);
}

Expand Down

0 comments on commit 69d4644

Please sign in to comment.