From 61c9ad08bf3cc9c55228ff9dcf191cf0928b823a Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Fri, 2 Aug 2013 02:45:54 +0100 Subject: Fixed memory leak. --- src/common/url.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit 1.4.1