diff --git a/src/swtpm_ioctl/tpm_ioctl.c b/src/swtpm_ioctl/tpm_ioctl.c index 16c668b..9c26add 100644 --- a/src/swtpm_ioctl/tpm_ioctl.c +++ b/src/swtpm_ioctl/tpm_ioctl.c @@ -967,6 +967,7 @@ int main(int argc, char *argv[]) tpm_device = optarg; break; case 'T': + free(tcp_hostname); if (parse_tcp_optarg(optarg, &tcp_hostname, &tcp_port) < 0) return EXIT_FAILURE; break;