X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fserv_imap.c;h=461cb1737f4148e4369db4fefeded7ca8dd1302d;hb=4a967914a4f4701053ba3a3fb96395b676f83de2;hp=a78d648a3b9b642d8b15862dae5355551390ddce;hpb=7e2c4b5b3ba6175db95d9e567c7310e938c34a9f;p=citadel.git diff --git a/citadel/modules/imap/serv_imap.c b/citadel/modules/imap/serv_imap.c index a78d648a3..461cb1737 100644 --- a/citadel/modules/imap/serv_imap.c +++ b/citadel/modules/imap/serv_imap.c @@ -413,9 +413,8 @@ void imap_cleanup_function(void) imap_free_msgids(); imap_free_transmitted_message(); - if (IMAP->cached_rfc822_data != NULL) { - free(IMAP->cached_rfc822_data); - IMAP->cached_rfc822_data = NULL; + if (IMAP->cached_rfc822 != NULL) { + FreeStrBuf(&IMAP->cached_rfc822); IMAP->cached_rfc822_msgnum = (-1); IMAP->cached_rfc822_withbody = 0; } @@ -505,7 +504,6 @@ void imap_greeting(void) CC->session_specific_data = malloc(sizeof(citimap)); memset(IMAP, 0, sizeof(citimap)); IMAP->authstate = imap_as_normal; - IMAP->cached_rfc822_data = NULL; IMAP->cached_rfc822_msgnum = (-1); IMAP->cached_rfc822_withbody = 0;