From: Ruben Kerkhof Date: Sun, 29 Nov 2015 17:27:56 +0000 (+0100) Subject: openvpn: free resource on error X-Git-Tag: collectd-5.6.0~530^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=246ed363bda10ab0fd00059b0820f441e1b09268;p=collectd.git openvpn: free resource on error --- diff --git a/src/openvpn.c b/src/openvpn.c index 7f94f51c..93c8f1b5 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -702,6 +702,7 @@ static int openvpn_config (const char *key, const char *value) char errbuf[1024]; ERROR ("openvpn plugin: malloc failed: %s", sstrerror (errno, errbuf, sizeof (errbuf))); + sfree (status_file); return (1); } temp->file = status_file;