aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-10-21 06:50:08 -0300
committerdequis <dx@dxzone.com.ar>2015-10-21 06:50:08 -0300
commit2b0c05c056eae4c9aa19584f8cbbac1be7337207 (patch)
treef8d7b2743cb38ecc7b8420cb8f6df6655cdbbaae
parent72d661eae66d72e26b8050c46403eafc749838fc (diff)
yahoo: call callback on connect error to fix memleak
Passing NULL as the "fd" and 0 as the error. The callback is yahoo_connected() in libyahoo2.c, and with those parameters all it does is freeing the data parameter.
-rw-r--r--protocols/yahoo/yahoo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/yahoo/yahoo.c b/protocols/yahoo/yahoo.c
index cdbfd24c..e7a7e749 100644
--- a/protocols/yahoo/yahoo.c
+++ b/protocols/yahoo/yahoo.c
@@ -447,6 +447,7 @@ void byahoo_connect_callback(gpointer data, gint source, b_input_condition cond)
}
if (source == -1) {
+ d->callback(NULL, 0, d->data);
imcb_error(ic, "Could not connect to server");
imc_logout(ic, TRUE);
g_free(d);