Skip to content

Commit

Permalink
confile: cleanup clr_config_rootfs_options()
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 Dec 8, 2020
1 parent 7decd49 commit 30f8754
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lxc/confile.c
Expand Up @@ -4716,11 +4716,8 @@ static inline int clr_config_rootfs_mount(const char *key, struct lxc_conf *c,
static inline int clr_config_rootfs_options(const char *key, struct lxc_conf *c,
void *data)
{
free(c->rootfs.options);
c->rootfs.options = NULL;

free(c->rootfs.data);
c->rootfs.data = NULL;
free_disarm(c->rootfs.options);
free_disarm(c->rootfs.data);

return 0;
}
Expand Down

0 comments on commit 30f8754

Please sign in to comment.