card: Fix memory leak for fetch-url sub command.