From 8d8d888262e8cc375266ae1fdba03314dbd9149c Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Wed, 10 Aug 2016 22:42:23 +0200 Subject: [PATCH] src/daemon/common.c: avoid leaking cap_header in error condition --- src/daemon/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon/common.c b/src/daemon/common.c index a522759c..14503525 100644 --- a/src/daemon/common.c +++ b/src/daemon/common.c @@ -1688,6 +1688,7 @@ int check_capability (int capability) /* {{{ */ if (cap_data == NULL) { ERROR("check_capability: calloc failed"); + sfree(cap_header); return (-1); } -- 2.11.0