Mercurial > pidgin
changeset 13398:bddf037063bd
[gaim-migrate @ 15772]
These shouldn't be dereferenced before the NULL check.
Resolves CID 73
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 06 Mar 2006 16:57:34 +0000 |
parents | 779dfb7925be |
children | 18d5d4018604 |
files | src/protocols/simple/simple.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/simple/simple.c Mon Mar 06 13:08:44 2006 +0000 +++ b/src/protocols/simple/simple.c Mon Mar 06 16:57:34 2006 +0000 @@ -1615,10 +1615,11 @@ { struct simple_account_data *sip = gc->proto_data; - /* unregister */ - do_register_exp(sip, 0); - connection_free_all(sip); if(sip) { + /* unregister */ + do_register_exp(sip, 0); + connection_free_all(sip); + g_free(sip->servername); g_free(sip->username); g_free(sip->password);