afh: Fix memory leak.