projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into ff/rrdd
[rrdtool.git]
/
bindings
/
ruby
/
main.c
diff --git
a/bindings/ruby/main.c
b/bindings/ruby/main.c
index
ec74668
..
d2a7ace
100644
(file)
--- a/
bindings/ruby/main.c
+++ b/
bindings/ruby/main.c
@@
-155,6
+155,7
@@
VALUE rb_rrd_infocall(
RRD_CHECK_ERROR result = rb_hash_new();
RRD_CHECK_ERROR result = rb_hash_new();
+ p = data;
while (data) {
VALUE key = rb_str_new2(data->key);
while (data) {
VALUE key = rb_str_new2(data->key);
@@
-171,19
+172,16
@@
VALUE rb_rrd_infocall(
break;
case RD_I_STR:
rb_hash_aset(result, key, rb_str_new2(data->value.u_str));
break;
case RD_I_STR:
rb_hash_aset(result, key, rb_str_new2(data->value.u_str));
- rrd_freemem(data->value.u_str);
break;
case RD_I_BLO:
rb_hash_aset(result, key,
rb_str_new(data->value.u_blo.ptr,
data->value.u_blo.size));
break;
case RD_I_BLO:
rb_hash_aset(result, key,
rb_str_new(data->value.u_blo.ptr,
data->value.u_blo.size));
- rrd_freemem(data->value.u_blo.ptr);
break;
}
break;
}
- p = data;
data = data->next;
data = data->next;
- rrd_freemem(p);
}
}
+ rrd_info_free(p);
return result;
}
return result;
}
@@
-191,21
+189,21
@@
VALUE rb_rrd_info(
VALUE self,
VALUE args)
{
VALUE self,
VALUE args)
{
- return rrd_infocall(rrd_info, args);
+ return r
b_r
rd_infocall(rrd_info, args);
}
VALUE rb_rrd_updatev(
VALUE self,
VALUE args)
{
}
VALUE rb_rrd_updatev(
VALUE self,
VALUE args)
{
- return rrd_infocall(rrd_update_v, args);
+ return r
b_r
rd_infocall(rrd_update_v, args);
}
VALUE rb_rrd_graphv(
VALUE self,
VALUE args)
{
}
VALUE rb_rrd_graphv(
VALUE self,
VALUE args)
{
- return rrd_infocall(rrd_graph_v, args);
+ return r
b_r
rd_infocall(rrd_graph_v, args);
}
}