From 88dd66fc3642c931eee1eec211978af348b81c1d Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Thu, 12 Dec 2013 12:30:13 -0600 Subject: [PATCH] coverity: fix memleak in userns_exec_1 Signed-off-by: Serge Hallyn --- src/lxc/conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 213714cf8..8bc3fe197 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -4051,6 +4051,7 @@ int userns_exec_1(struct lxc_conf *conf, int (*fn)(void *), void *data) ret = lxc_map_ids(idmap, pid); lxc_free_idmap(idmap); + free(idmap); if (ret < 0) { ERROR("Error setting up child mappings"); goto err; -- 2.47.3