Free mailbox at exit

This commit is contained in:
Pasi Kallinen
2016-05-23 17:18:24 +03:00
parent e37da61b30
commit 3b38c75517
3 changed files with 11 additions and 0 deletions

View File

@@ -1070,6 +1070,7 @@ E void FDECL(nocmov, (int x, int y));
#ifdef MAIL
#ifdef UNIX
E void NDECL(free_maildata);
E void NDECL(getmailstatus);
E void NDECL(ck_server_admin_msg);
#endif

View File

@@ -80,6 +80,13 @@ static long laststattime;
#define MAILPATH "/usr/mail/"
#endif
void
free_maildata()
{
if (mailbox)
free(mailbox);
}
void
getmailstatus()
{

View File

@@ -1329,6 +1329,9 @@ free_dungeons()
void
freedynamicdata()
{
#if defined(UNIX) && defined(MAIL)
free_maildata();
#endif
unload_qtlist();
free_menu_coloring();
free_invbuf(); /* let_to_name (invent.c) */