index: Set variable to NULL after free.
index: Set variable to NULL after free.

Then NULL check for this variable is not valid.
This fixes coverity CID 1193250:  Use after free  (USE_AFTER_FREE).

@fix

rvandegrift/elementary,tasn/elementary,tasn/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary,rvandegrift/elementary,tasn/elementary,tasn/elementary,tasn/elementary,rvandegrift/elementary,rvandegrift/elementary,FlorentRevest/Elementary,FlorentRevest/Elementary