[PATCH openEuler-5.10-LTS-SP1 11/36] ima: Fix memory leakage in ima_store_template