Fix an unlikely memleak found by the IBM checker