Skip to content

Commit

Permalink
confile: cleanup clr_config_console_logfile()
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 15, 2020
1 parent 316b910 commit cb3c1f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lxc/confile.c
Expand Up @@ -4427,8 +4427,7 @@ static inline int clr_config_console_path(const char *key, struct lxc_conf *c,
static inline int clr_config_console_logfile(const char *key,
struct lxc_conf *c, void *data)
{
free(c->console.log_path);
c->console.log_path = NULL;
free_disarm(c->console.log_path);
return 0;
}

Expand Down

0 comments on commit cb3c1f7

Please sign in to comment.