No need to check for NULL, free_private_key() already does that.