# HG changeset patch # User Sulabh Mahajan # Date 1239810391 0 # Node ID 3712d32363ddef68256ec5919dd8889b31c31072 # Parent d00a8111e4792e07d21598e592a10b12fc6f2f9a Remove a bug where host_ip was accessed after freeing it. This should prevent yahoo prpl crashes. I wonder how such a simple mistake escaped me for so long. diff -r d00a8111e479 -r 3712d32363dd libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Wed Apr 15 01:44:17 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Wed Apr 15 15:46:31 2009 +0000 @@ -2973,8 +2973,10 @@ /* connect to host */ if((purple_proxy_connect(NULL, account, host_ip, YAHOO_PAGER_PORT_P2P, yahoo_p2p_init_cb, p2p_data))==NULL) { - yahoo_p2p_disconnect_destroy_data(p2p_data); purple_debug_info("yahoo","p2p: Connection to %s failed\n", host_ip); + g_free(p2p_data->host_ip); + g_free(p2p_data->host_username); + g_free(p2p_data); } } }