diff options
Diffstat (limited to 'nick.c')
-rw-r--r-- | nick.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } } |