]>
diplodocus.org Git - nmh/blob - sbr/folder_free.c
3 * folder_free.c -- free a folder/message structure
5 * This code is Copyright (c) 2002, by the authors of nmh. See the
6 * COPYRIGHT file in the root directory of the nmh distribution for
7 * complete copyright information.
14 folder_free (struct msgs
*mp
)
24 /* free the sequence names */
25 for (i
= 0; mp
->msgattrs
[i
]; i
++)
26 free (mp
->msgattrs
[i
]);
28 /* Close/free the sequence file if it is open */
31 lkfclosedata (mp
->seqhandle
, mp
->seqname
);
36 free (mp
->msgstats
); /* free message status area */
37 free (mp
); /* free main folder structure */