g10: Fix memory leak.
* g10/import.c (transfer_secret_keys): Release curve from the previous iteration.