projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59c02f6
)
openvpn: free resource on error
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 29 Nov 2015 17:27:56 +0000
(18:27 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 12 Jan 2016 06:59:00 +0000
(07:59 +0100)
src/openvpn.c
patch
|
blob
|
history
diff --git
a/src/openvpn.c
b/src/openvpn.c
index
09a6c54
..
65440d5
100644
(file)
--- 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;