fix (rv) memory leak