summary refs log tree commit diff stats
path: root/src/common/util.c
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2014-12-08 21:24:59 -0800
committerArnavion <arnavion@gmail.com>2014-12-08 21:24:59 -0800
commit65da34f19eab5edde0615ccc4a58be1947cfce6e (patch)
treed7859d3241ec8c91cca590d8ec96f38fc6a7c52e /src/common/util.c
parentb7afcc36321b9a61b208f9cd4071f60a3894c1cf (diff)
Removed some unnecessary null-checks for calls to g_free and g_strfreev
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index bfcc28a9..dd189f3d 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1643,8 +1643,7 @@ parse_dh (char *str, DH **dh_out, unsigned char **secret_out, int *keysize_out)
 	return 1;
 
 fail:
-	if (decoded_data)
-		g_free (decoded_data);
+	g_free (decoded_data);
 	return 0;
 }