]> diplodocus.org Git - nmh/blob - sbr/folder_free.c
Just reworded the bit about '%s' being safe not to quote (it's only safe not to
[nmh] / sbr / folder_free.c
1
2 /*
3 * folder_free.c -- free a folder/message structure
4 *
5 * $Id$
6 */
7
8 #include <h/mh.h>
9
10
11 void
12 folder_free (struct msgs *mp)
13 {
14 int i;
15
16 if (!mp)
17 return;
18
19 if (mp->foldpath)
20 free (mp->foldpath);
21
22 /* free the sequence names */
23 for (i = 0; mp->msgattrs[i]; i++)
24 free (mp->msgattrs[i]);
25
26 free (mp->msgstats); /* free message status area */
27 free (mp); /* free main folder structure */
28 }