]> diplodocus.org Git - nmh/blob - sbr/folder_free.c
Cope with sasl_decode64() returning SASL_CONTINUE as well as SASL_OK.
[nmh] / sbr / folder_free.c
1
2 /*
3 * folder_free.c -- free a folder/message structure
4 *
5 * $Id$
6 *
7 * This code is Copyright (c) 2002, by the authors of nmh. See the
8 * COPYRIGHT file in the root directory of the nmh distribution for
9 * complete copyright information.
10 */
11
12 #include <h/mh.h>
13
14
15 void
16 folder_free (struct msgs *mp)
17 {
18 int i;
19
20 if (!mp)
21 return;
22
23 if (mp->foldpath)
24 free (mp->foldpath);
25
26 /* free the sequence names */
27 for (i = 0; mp->msgattrs[i]; i++)
28 free (mp->msgattrs[i]);
29
30 free (mp->msgstats); /* free message status area */
31 free (mp); /* free main folder structure */
32 }