Skip to content

Commit

Permalink
confile: cleanup clr_config_selinux_context()
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 1c64e3e commit 6afcf6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lxc/confile.c
Expand Up @@ -4574,8 +4574,7 @@ static inline int clr_config_apparmor_raw(const char *key,
static inline int clr_config_selinux_context(const char *key,
struct lxc_conf *c, void *data)
{
free(c->lsm_se_context);
c->lsm_se_context = NULL;
free_disarm(c->lsm_se_context);
return 0;
}

Expand Down

0 comments on commit 6afcf6d

Please sign in to comment.