commit | 64641d876466333b833e8a188a46e2e06c008bac | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Fri Jun 06 18:47:43 2014 +0200 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Thu Jun 19 12:48:07 2014 +0200 |
tree | 6a1590a2231e79c6eb1a95e9fca4190744f571b4 | |
parent | d279279e2b5cd40dbcc863fb66a695990f304077 [diff] [blame] |
vnc: Drop superfluous conditionals around g_free() Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
diff --git a/ui/vnc-tls.c b/ui/vnc-tls.c index 50275de..6392326 100644 --- a/ui/vnc-tls.c +++ b/ui/vnc-tls.c
@@ -443,10 +443,8 @@ { struct stat sb; - if (*cred) { - g_free(*cred); - *cred = NULL; - } + g_free(*cred); + *cred = NULL; *cred = g_malloc(strlen(certdir) + strlen(filename) + 2);