ima: Do not free 'entry' before it is initialized