Mercurial > pidgin
comparison src/protocols/msn/notification.c @ 6779:f5c483cdd1d8
[gaim-migrate @ 7317]
more memleak fixes. ChipX86 will probably revert these, since I probably did it wrong ;-)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 07 Sep 2003 16:22:58 +0000 |
parents | 513fd80bcd2e |
children | 8f228a7d5076 |
comparison
equal
deleted
inserted
replaced
6778:b8bc8dd411cc | 6779:f5c483cdd1d8 |
---|---|
347 g_free(username); | 347 g_free(username); |
348 g_free(password); | 348 g_free(password); |
349 | 349 |
350 if ((s = gaim_ssl_write(gsc, request_str, strlen(request_str))) <= 0) | 350 if ((s = gaim_ssl_write(gsc, request_str, strlen(request_str))) <= 0) |
351 { | 351 { |
352 g_free(request_str); | |
352 gaim_connection_error(gc, _("Unable to write to MSN Nexus server.")); | 353 gaim_connection_error(gc, _("Unable to write to MSN Nexus server.")); |
353 | 354 |
354 return; | 355 return; |
355 } | 356 } |
357 | |
358 g_free(request_str); | |
356 | 359 |
357 if ((s = msn_ssl_read(gsc, &buffer)) <= 0) | 360 if ((s = msn_ssl_read(gsc, &buffer)) <= 0) |
358 { | 361 { |
359 gaim_connection_error(gc, _("Unable to read from MSN Nexus server.")); | 362 gaim_connection_error(gc, _("Unable to read from MSN Nexus server.")); |
360 | 363 |
505 | 508 |
506 request_str = g_strdup_printf("GET /rdr/pprdr.asp\r\n\r\n"); | 509 request_str = g_strdup_printf("GET /rdr/pprdr.asp\r\n\r\n"); |
507 | 510 |
508 if ((s = gaim_ssl_write(gsc, request_str, strlen(request_str))) <= 0) | 511 if ((s = gaim_ssl_write(gsc, request_str, strlen(request_str))) <= 0) |
509 { | 512 { |
513 g_free(request_str); | |
510 gaim_connection_error(gc, _("Unable to write to MSN Nexus server.")); | 514 gaim_connection_error(gc, _("Unable to write to MSN Nexus server.")); |
511 return; | 515 return; |
512 } | 516 } |
513 | 517 |
518 g_free(request_str); | |
514 g_free(session->ssl_url); | 519 g_free(session->ssl_url); |
515 session->ssl_url = NULL; | 520 session->ssl_url = NULL; |
516 | 521 |
517 /* Get the PassportURLs line. */ | 522 /* Get the PassportURLs line. */ |
518 if ((s = msn_ssl_read(gsc, &buffer)) <= 0) | 523 if ((s = msn_ssl_read(gsc, &buffer)) <= 0) |
633 g_strdup(key), g_strdup(value)); | 638 g_strdup(key), g_strdup(value)); |
634 | 639 |
635 key = c + 1; | 640 key = c + 1; |
636 } | 641 } |
637 } | 642 } |
643 | |
644 g_free(challenge_data); | |
638 | 645 |
639 #if 0 | 646 #if 0 |
640 passport_str = g_strdup(msn_url_decode(params[3])); | 647 passport_str = g_strdup(msn_url_decode(params[3])); |
641 | 648 |
642 for (c = passport_str; *c != '\0'; c++) | 649 for (c = passport_str; *c != '\0'; c++) |