I'd like to embed ruby into a C program. Are there any potential
memory leaks regarding rb_str_new(), rb_define_readonly_variable(),
etc.?

How can I be sure that the objects generated by rb_str_new() get
cleaned up? Are there any old references left when I call
rb_define_readonly_variable() more than once with the same variable,
but different data?