Update to stepcode function 'DirObj::CheckIndex' to quiet a valgrind 'mismatched free' warning.

git-svn-id: svn://svn.code.sf.net/p/brlcad/code/brlcad/trunk@57177 2f96ce8b-6d43-0410-b8df-bffccc660ffb