Fix memory leak in handling expired notification alarm