[PATCH openEuler-1.0-LTS 08/26] ima: Free the entire rule when deleting a list of rules