Fix memory leak of IBs when processing frame ranges

Leak found in production when long frame ranges were used on oiiotool command line.