From: Marc Fournier Date: Wed, 10 Aug 2016 20:42:23 +0000 (+0200) Subject: src/daemon/common.c: avoid leaking cap_header in error condition X-Git-Tag: collectd-5.6.0~57^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8d8d888262e8cc375266ae1fdba03314dbd9149c;p=collectd.git src/daemon/common.c: avoid leaking cap_header in error condition --- 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); }