g10: Fix memory leak.