From: Ruben Kerkhof Date: Sun, 29 Nov 2015 17:27:56 +0000 (+0100) Subject: openvpn: free resource on error X-Git-Tag: collectd-5.5.1~7^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9c0fc91d5c2e28bd1d9f214bd479cafdd0b4b304;p=collectd.git openvpn: free resource on error --- diff --git a/src/openvpn.c b/src/openvpn.c index 09a6c54e..65440d5c 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -622,6 +622,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;