From 9c0fc91d5c2e28bd1d9f214bd479cafdd0b4b304 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 29 Nov 2015 18:27:56 +0100 Subject: [PATCH] openvpn: free resource on error --- src/openvpn.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2