diff --git a/ui/vnc-tls.c b/ui/vnc-tls.c index 63923265fd836bea1516be81a922ec955525332a..0f59f9b28e278874b5f81761830a979e08182d32 100644 --- a/ui/vnc-tls.c +++ b/ui/vnc-tls.c @@ -444,8 +444,6 @@ static int vnc_set_x509_credential(VncDisplay *vd, struct stat sb; g_free(*cred); - *cred = NULL; - *cred = g_malloc(strlen(certdir) + strlen(filename) + 2); strcpy(*cred, certdir);