diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-08-02 02:45:54 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-08-02 02:45:54 +0100 |
commit | 61c9ad08bf3cc9c55228ff9dcf191cf0928b823a (patch) | |
tree | ea8dda8a2f34474c079ba8dac0a89471171ecf13 /src | |
parent | 6ec7bfad3052bd40d5022a38092efcce053bc8cf (diff) |
Fixed memory leak.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/url.c | 3 |
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); |