The calls to `rstream_free` are missing.