From 246ed363bda10ab0fd00059b0820f441e1b09268 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 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; -- 2.30.2