avoid RF memory leak (see #264)