Both tests gives me segmentation fault on linux with rust 1.9.0. I can't fix it myself.
Second test is more "real life", but I'm not sure, maybe compiler can optimize it and do it without cloning.
Thanks, will take a look! The global scope of memory management in libxml is admittedly a hard paradigm to wrap in Rust, not surprised that there can be a segfault. Great to have tests!
Both tests gives me segmentation fault on linux with rust 1.9.0. I can't fix it myself. Second test is more "real life", but I'm not sure, maybe compiler can optimize it and do it without cloning.