diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-07-14 11:25:48 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-07-14 11:25:48 +0200 |
commit | 75a4b85ea060c5b63e9742ee9d1591bd618ba5c2 (patch) | |
tree | dc894aa01b16664807bd18328766a43e9ebd21ea /root_commands.c | |
parent | 7e3592e96b27ec8375e4b28354bcf9ed4cf5943b (diff) |
Fixed a memory leak, added a check for valid Jabber handles, and updated
documentation (added information about "account set" and sorted the list
of settings because it was a bit too random).
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c index 2cf67134..389266eb 100644 --- a/root_commands.c +++ b/root_commands.c @@ -376,6 +376,7 @@ static void cmd_account( irc_t *irc, char **cmd ) if( a == NULL ) { + g_free( acc_handle ); irc_usermsg( irc, "Invalid account" ); return; } @@ -386,11 +387,13 @@ static void cmd_account( irc_t *irc, char **cmd ) if( a->gc && s && s->flags & ACC_SET_OFFLINE_ONLY ) { + g_free( acc_handle ); irc_usermsg( irc, "This setting can only be changed when the account is %s-line", "off" ); return; } else if( !a->gc && s && s->flags & ACC_SET_ONLINE_ONLY ) { + g_free( acc_handle ); irc_usermsg( irc, "This setting can only be changed when the account is %s-line", "on" ); return; } |