2 ms·
In the C example str is heap allocated, so it’s not associated with r and leaked in that example. I should free it to make that clear! After writing a lot of r
by josephg 5y ago
In the C example str is heap allocated, so it’s not associated with r and leaked in that example. I should free it to make that clear!
After writing a lot of rust code this year it’s sort of weird reading that, and seeing that aspect of the code not be explicit or obvious.