>>>>> "S" == Stefan Scholl <stesch / no-spoon.de> writes:

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

 no,

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

 ruby use a mark/sweep garbage collector

Guy Decoux