Fix mismatched free() / delete / delete [] in RmsHelper.h