summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/url.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/url.c b/src/common/url.c
index 4435da60..1cdfdce7 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -251,7 +251,10 @@ match_nick (const char *word, int *start, int *end)
 	str = g_strndup (&word[*start], *end - *start);
 
 	if (!userlist_find (current_sess, str))
+	{
+		g_free (str);
 		return FALSE;
+	}
 
 	g_free (str);