comparison libpurple/protocols/msn/soap2.c @ 20537:c49b886231d5

fix a memleak or 2
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 03 Oct 2007 05:05:35 +0000
parents 7e69275a4eef
children 90fd0826c6ce
comparison
equal deleted inserted replaced
20536:d52d299cfde3 20537:c49b886231d5
358 } else if (strcmp(key, "Connection") == 0) { 358 } else if (strcmp(key, "Connection") == 0) {
359 if (strcmp(value, "close") == 0) { 359 if (strcmp(value, "close") == 0) {
360 conn->close_when_done = TRUE; 360 conn->close_when_done = TRUE;
361 } 361 }
362 } 362 }
363 g_free(line);
363 } 364 }
364 365
365 loop_end: 366 loop_end:
366 cursor = conn->buf->str + conn->handled_len; 367 cursor = conn->buf->str + conn->handled_len;
367 } 368 }
491 conn->event_handle = purple_input_add(conn->ssl->fd, 492 conn->event_handle = purple_input_add(conn->ssl->fd,
492 PURPLE_INPUT_WRITE, msn_soap_write_cb, conn); 493 PURPLE_INPUT_WRITE, msn_soap_write_cb, conn);
493 msn_soap_write_cb(conn, conn->ssl->fd, PURPLE_INPUT_WRITE); 494 msn_soap_write_cb(conn, conn->ssl->fd, PURPLE_INPUT_WRITE);
494 495
495 g_free(authstr); 496 g_free(authstr);
497 g_free(body);
496 } 498 }
497 } 499 }
498 500
499 return FALSE; 501 return FALSE;
500 } 502 }