[Issue 10445] memory leak in get_mra