Fixed a buffer leak with slice-I streams (thanks sam).