aboutsummaryrefslogtreecommitdiffstats
path: root/nick.c
diff options
context:
space:
mode:
Diffstat (limited to 'nick.c')
-rw-r--r--nick.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nick.c b/nick.c
index 0d394ecb..8268d4a7 100644
--- a/nick.c
+++ b/nick.c
@@ -1,7 +1,7 @@
/********************************************************************\
* BitlBee -- An IRC to other IM-networks gateway *
* *
- * Copyright 2002-2010 Wilmer van der Gaast and others *
+ * Copyright 2002-2012 Wilmer van der Gaast and others *
\********************************************************************/
/* Some stuff to fetch, save and handle nicknames for your buddies */
@@ -133,7 +133,10 @@ char *nick_gen( bee_user_t *bu )
{
chop = fmt[1];
if( chop == '\0' )
+ {
+ g_string_free( ret, TRUE );
return NULL;
+ }
fmt += 2;
}
else if( isdigit( *fmt ) )
@@ -186,6 +189,7 @@ char *nick_gen( bee_user_t *bu )
}
else
{
+ g_string_free( ret, TRUE );
return NULL;
}
}