When clearing scan cache reset linked list ends.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>