Fix memory issues with RLS frames and LUTs