projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b2a769
)
csv plugin: plug memory leak on error
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 19:19:26 +0000
(20:19 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 28 Nov 2015 19:20:52 +0000
(20:20 +0100)
CID 38015
src/csv.c
patch
|
blob
|
history
diff --git
a/src/csv.c
b/src/csv.c
index
15494f4
..
d2d388b
100644
(file)
--- a/
src/csv.c
+++ b/
src/csv.c
@@
-64,7
+64,10
@@
static int value_list_to_string (char *buffer, int buffer_len,
&& (ds->ds[i].type != DS_TYPE_GAUGE)
&& (ds->ds[i].type != DS_TYPE_DERIVE)
&& (ds->ds[i].type != DS_TYPE_ABSOLUTE))
+ {
+ sfree (rates);
return (-1);
+ }
if (ds->ds[i].type == DS_TYPE_GAUGE)
{