Revision 12455,
472 bytes
checked in by danw, 26 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r12454,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | |
---|
2 | /* |
---|
3 | * folder_free.c -- free a folder/message structure |
---|
4 | * |
---|
5 | * $Id: folder_free.c,v 1.1.1.1 1999-02-07 18:14:08 danw Exp $ |
---|
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 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.