X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Flogging.h;h=8bfa63fc4cfcf4c2537c5c85313d1753bdaa274f;hb=caf38b3a120b40ff7b738a532cfd122eb2de9d91;hp=dbc17ab70074a95f642bc2987d2063e33cfaf75c;hpb=597586f28912e73848be586197303d72a7ca0f18;p=monky diff --git a/src/logging.h b/src/logging.h index dbc17ab..8bfa63f 100644 --- a/src/logging.h +++ b/src/logging.h @@ -27,6 +27,8 @@ * */ +#include "mail.h" + void clean_up(void *memtofree1, void* memtofree2); #ifndef _LOGGING_H @@ -40,7 +42,7 @@ void clean_up(void *memtofree1, void* memtofree2); /* critical error */ #define CRIT_ERR(memtofree1, memtofree2, ...) \ - { NORM_ERR(__VA_ARGS__); clean_up(memtofree1, memtofree2); exit(EXIT_FAILURE); } + { NORM_ERR(__VA_ARGS__); clean_up(memtofree1, memtofree2); free(current_mail_spool); exit(EXIT_FAILURE); } /* debugging output */ extern int global_debug_level;