g10: Fix memory leak for --card-status.