From 65da34f19eab5edde0615ccc4a58be1947cfce6e Mon Sep 17 00:00:00 2001 From: Arnavion Date: Mon, 8 Dec 2014 21:24:59 -0800 Subject: Removed some unnecessary null-checks for calls to g_free and g_strfreev --- src/common/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/common/server.c') 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 */ -- cgit 1.4.1