summary refs log tree commit diff stats
path: root/src/common/server.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/server.c
parentb7afcc36321b9a61b208f9cd4071f60a3894c1cf (diff)
Removed some unnecessary null-checks for calls to g_free and g_strfreev
Diffstat (limited to 'src/common/server.c')
-rw-r--r--src/common/server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/server.c b/src/common/server.c
index 6432a2b9..174e0d17 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -403,8 +403,7 @@ server_inline (server *serv, char *line, int len)
 	/* let proto-irc.c handle it */
 	serv->p_inline (serv, line, len);
 
-	if (utf_line_allocated != NULL) /* only if a special copy was allocated */
-		g_free (utf_line_allocated);
+	g_free (utf_line_allocated);
 }
 
 /* read data from socket */