From 4958760007af4f45a1ff59196af49699349e2569 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 19 Feb 2019 23:46:34 +0100 Subject: [PATCH] conf: cleanup macros idmaptool_on_path_[...] Signed-off-by: Christian Brauner --- src/lxc/conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index dab27e9fc..f93bd0c10 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2786,7 +2786,7 @@ int write_id_mapping(enum idtype idtype, pid_t pid, const char *buf, */ static int idmaptool_on_path_and_privileged(const char *binary, cap_value_t cap) { - char *path; + __do_free char *path = NULL; int ret; struct stat st; int fret = 0; @@ -2842,7 +2842,6 @@ static int idmaptool_on_path_and_privileged(const char *binary, cap_value_t cap) #endif cleanup: - free(path); return fret; } -- 2.47.3