comparison src/lib-storage/index/index-mail-headers.c @ 6980:d373913cd763 HEAD

Memory leak fixes
author Timo Sirainen <tss@iki.fi>
date Sun, 09 Dec 2007 16:08:25 +0200
parents 414c9d631a81
children 7ed926ed7aa4
comparison
equal deleted inserted replaced
6979:1029b2ffad2d 6980:d373913cd763
453 mail->data.stream->v_offset; 453 mail->data.stream->v_offset;
454 454
455 mail->data.save_envelope = TRUE; 455 mail->data.save_envelope = TRUE;
456 header_ctx = mailbox_header_lookup_init(&mail->ibox->box, 456 header_ctx = mailbox_header_lookup_init(&mail->ibox->box,
457 imap_envelope_headers); 457 imap_envelope_headers);
458 if (mail_get_header_stream(&mail->mail.mail, header_ctx, &stream) < 0) 458 if (mail_get_header_stream(&mail->mail.mail, header_ctx, &stream) < 0) {
459 mailbox_header_lookup_deinit(&header_ctx);
459 return -1; 460 return -1;
461 }
460 462
461 if (mail->data.envelope == NULL && stream != NULL) { 463 if (mail->data.envelope == NULL && stream != NULL) {
462 /* we got the headers from cache - parse them to get the 464 /* we got the headers from cache - parse them to get the
463 envelope */ 465 envelope */
464 message_parse_header(stream, NULL, hdr_parser_flags, 466 message_parse_header(stream, NULL, hdr_parser_flags,