Please Review: (690649) Use of free'd pointer in indexing code