The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxcfs/pull/395
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Fixes: Coverity 355747. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com>
From 5ec289bfd2a9469e45d07c251762c6b1c3bb3f41 Mon Sep 17 00:00:00 2001 From: Christian Brauner <christian.brau...@ubuntu.com> Date: Thu, 16 Apr 2020 19:12:34 +0200 Subject: [PATCH] bindings: use zalloc() Fixes: Coverity 355747. Signed-off-by: Christian Brauner <christian.brau...@ubuntu.com> --- src/bindings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings.c b/src/bindings.c index 0c19739..89ebde5 100644 --- a/src/bindings.c +++ b/src/bindings.c @@ -274,7 +274,7 @@ static void save_initpid(ino_t pidns_inode, pid_t pid) if (stat(path, &st)) return; - entry = malloc(sizeof(*entry)); + entry = zalloc(sizeof(*entry)); if (!entry) return;
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel