]> diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/sbr/m_fmsg.c
Always check that mktemp()/mktemp2() succeeds before trying to
[nmh] / docs / historical / mh-6.8.5 / sbr / m_fmsg.c
1 /* m_fmsg.c - free a folder */
2 #ifndef lint
3 static char ident[] = "@(#)$Id: m_fmsg.c,v 1.3 1992/12/15 00:20:22 jromine Exp $";
4 #endif /* lint */
5
6 #include "../h/mh.h"
7 #include <stdio.h>
8
9
10 void m_fmsg (mp)
11 register struct msgs *mp;
12 {
13 register int i;
14
15 if (mp == NULL)
16 return;
17
18 if (mp -> foldpath)
19 free (mp -> foldpath);
20 #ifdef MTR
21 free ((char *) mp -> msgbase);
22 #endif /* MTR */
23 for (i = 0; mp -> msgattrs[i]; i++)
24 free (mp -> msgattrs[i]);
25 free ((char *) mp);
26 }