[PATCH openEuler-1.0-LTS 09/26] ima: Free the entire rule if it fails to parse