From 5284ae0e025750fb5e3acd49047316afedeb45ca Mon Sep 17 00:00:00 2001 From: Erik Hovland Date: Tue, 16 Dec 2008 19:56:07 -0800 Subject: [PATCH] Remove unused #include directives --- ChangeLog | 12 +++++++++++- crypt.c | 1 - curs_main.c | 2 -- flags.c | 4 ---- group.c | 5 ----- hcache.c | 4 ---- mh.c | 2 -- pager.c | 3 --- pgpmicalg.c | 1 - pgppacket.c | 2 -- postpone.c | 2 -- query.c | 1 - recvattach.c | 1 - recvcmd.c | 4 ---- send.c | 1 - 15 files changed, 11 insertions(+), 34 deletions(-) diff --git a/ChangeLog b/ChangeLog index 648a63382..b91ffb81e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,14 @@ -2008-12-16 13:00 -0800 Erik Hovland (26216d118339) +2008-12-16 14:31 -0800 Erik Hovland (e86a97890e09) + + * sendlib.c: mutt_gen_msgid() allocates the msgid off of the heap. + + Since mutt_gen_msgid() allocates the msgid string with strdup, it is + getting it off of the heap. + + When the fprintf writes the msgid, the string is no longer tracked + and that string is leaked. + + * parse.c: Match variable type to getch return type * alias.c: Fix fread rc check diff --git a/crypt.c b/crypt.c index 67d7276bf..096e0f6ce 100644 --- a/crypt.c +++ b/crypt.c @@ -30,7 +30,6 @@ #include "mime.h" #include "copy.h" #include "mutt_crypt.h" -#include "pgp.h" #include #include diff --git a/curs_main.c b/curs_main.c index 4627fa181..ac32c66a6 100644 --- a/curs_main.c +++ b/curs_main.c @@ -23,11 +23,9 @@ #include "mutt.h" #include "mutt_curses.h" #include "mutt_menu.h" -#include "attach.h" #include "mailbox.h" #include "mapping.h" #include "sort.h" -#include "buffy.h" #include "mx.h" #ifdef USE_POP diff --git a/flags.c b/flags.c index 9465faf02..f0f3d8124 100644 --- a/flags.c +++ b/flags.c @@ -25,10 +25,6 @@ #include "sort.h" #include "mx.h" -#ifdef USE_IMAP -#include "imap_private.h" -#endif - void _mutt_set_flag (CONTEXT *ctx, HEADER *h, int flag, int bf, int upd_ctx) { int changed = h->changed; diff --git a/group.c b/group.c index 195f3dfc7..030c451c4 100644 --- a/group.c +++ b/group.c @@ -21,15 +21,10 @@ #endif #include "mutt.h" -#include "mapping.h" #include "mutt_curses.h" #include "mutt_regex.h" -#include "history.h" -#include "keymap.h" #include "mbyte.h" #include "charset.h" -#include "mutt_crypt.h" -#include "mutt_idna.h" #include #include diff --git a/hcache.c b/hcache.c index 1184e97aa..ece4ca9f4 100644 --- a/hcache.c +++ b/hcache.c @@ -42,10 +42,6 @@ #include "mutt.h" #include "hcache.h" #include "hcversion.h" -#ifdef USE_IMAP -#include "message.h" -#endif -#include "mime.h" #include "mx.h" #include "lib.h" #include "md5.h" diff --git a/mh.c b/mh.c index 050cf5f45..08c5861a0 100644 --- a/mh.c +++ b/mh.c @@ -30,9 +30,7 @@ #include "mailbox.h" #include "mx.h" #include "copy.h" -#include "buffy.h" #include "sort.h" -#include "account.h" #if USE_HCACHE #include "hcache.h" #endif diff --git a/pager.c b/pager.c index f7992c8eb..f7cd2d2b8 100644 --- a/pager.c +++ b/pager.c @@ -26,13 +26,10 @@ #include "keymap.h" #include "mutt_menu.h" #include "mapping.h" -#include "sort.h" #include "pager.h" #include "attach.h" #include "mbyte.h" -#include "mx.h" - #include "mutt_crypt.h" #include diff --git a/pgpmicalg.c b/pgpmicalg.c index f81c76bf5..d22c50cc5 100644 --- a/pgpmicalg.c +++ b/pgpmicalg.c @@ -28,7 +28,6 @@ #include "mutt.h" #include "pgp.h" #include "pgppacket.h" -#include "mime.h" #include "charset.h" #include diff --git a/pgppacket.c b/pgppacket.c index 8c2d4b928..22642ec34 100644 --- a/pgppacket.c +++ b/pgppacket.c @@ -32,9 +32,7 @@ /* yuck, we were including this one somewhere below. */ #include "mutt.h" -#include "sha1.h" #include "lib.h" -#include "pgplib.h" #include "pgppacket.h" #define CHUNKSIZE 1024 diff --git a/postpone.c b/postpone.c index 1c40cb99b..50d9bdb71 100644 --- a/postpone.c +++ b/postpone.c @@ -23,13 +23,11 @@ #include "mutt.h" #include "mutt_menu.h" -#include "rfc1524.h" #include "mime.h" #include "mailbox.h" #include "mapping.h" #include "sort.h" #ifdef USE_IMAP -#include "mx.h" #include "imap.h" #endif #include "mutt_crypt.h" diff --git a/query.c b/query.c index 0279778c8..43507b97a 100644 --- a/query.c +++ b/query.c @@ -24,7 +24,6 @@ #include "mutt_menu.h" #include "mutt_idna.h" #include "mapping.h" -#include "sort.h" #include #include diff --git a/recvattach.c b/recvattach.c index d0fbe0c4c..4b73d6b24 100644 --- a/recvattach.c +++ b/recvattach.c @@ -30,7 +30,6 @@ #include "attach.h" #include "mapping.h" #include "mx.h" -#include "copy.h" #include "mutt_crypt.h" #include diff --git a/recvcmd.c b/recvcmd.c index 7890cfbe7..c2cfa6d69 100644 --- a/recvcmd.c +++ b/recvcmd.c @@ -26,12 +26,8 @@ #include "mutt.h" #include "mutt_curses.h" #include "mutt_menu.h" -#include "rfc1524.h" -#include "mime.h" -#include "mailbox.h" #include "attach.h" #include "mapping.h" -#include "mx.h" #include "copy.h" #include "mutt_idna.h" diff --git a/send.c b/send.c index fd3349c03..a145124c7 100644 --- a/send.c +++ b/send.c @@ -27,7 +27,6 @@ #include "mime.h" #include "mailbox.h" #include "copy.h" -#include "mx.h" #include "mutt_crypt.h" #include "mutt_idna.h" #include "url.h" -- 2.40.0