Patch01 for XFaces 3.2

Chris Liebman (liebman@zod.clark.net)
Tue, 8 Mar 94 10:44 EST

Patch #1 for xfaces-3.2

This patch fixes a very large memory leak in xfaces version 3.2.
If you have the patch command then cd into the xfaces-3.2 directory and
run the following command:

patch -p0 <this_file

-- Chris

Chris Liebman Work Home
Internet: liebman@xrxedds.com liebman@zod.clark.net
UUCP: uunet!xrxedds!liebman uunet!clarknet!zod!liebman
Phone: 1-703-787-2032 1-703-830-1641

*** /tmp/RCSAa01837 Tue Mar 8 10:27:34 1994
--- ChangeLog Tue Mar 8 10:05:34 1994
***************
*** 1,3 ****
--- 1,10 ----
+ Tue Mar 8 10:01:53 1994 Chris Liebman (liebman@zod)
+
+ * mail_items.c MailItemCreate():
+ If MailItemCreate() determined that this set of headers was
+ already attached to an item the "extra" copy of the headers were
+ never freed!
+
Mon Mar 7 08:06:22 1994 Chris Liebman (liebman@zod)

* Release 3.2
*** /tmp/RCSAa01837 Tue Mar 8 10:27:34 1994
--- mail_items.c Tue Mar 8 10:05:58 1994
***************
*** 66,72 ****
*/

#ifndef lint
! static char *RCSid = "$Id: mail_items.c,v 1.19 1994/03/08 02:19:22 liebman Exp $";
#endif

#include "faces.h"
--- 66,72 ----
*/

#ifndef lint
! static char *RCSid = "$Id: mail_items.c,v 1.20 1994/03/08 15:05:57 liebman Exp $";
#endif

#include "faces.h"
***************
*** 415,421 ****
--- 415,427 ----
*/

MailItemAnnotate(item, NULL);
+
+ /*
+ * Don't need these headers!
+ */

+ MailHeaderListFree(headers);
+
return;
}
}
***************
*** 443,455 ****
/*
* If we found no from line then we ignore this message.
*/
!
if (from == NULL)
{
MailItemFree(item);
return;
}
!
/*
* Parse the from address.
*/
--- 449,461 ----
/*
* If we found no from line then we ignore this message.
*/
!
if (from == NULL)
{
MailItemFree(item);
return;
}
!
/*
* Parse the from address.
*/
*** /tmp/RCSAa01837 Tue Mar 8 10:27:35 1994
--- patchlevel.h Tue Mar 8 10:08:33 1994
***************
*** 32,38 ****
* PURPOSE
* Version and patch level.
*
! * $Id: patchlevel.h,v 1.12 1994/03/08 02:20:26 liebman Exp $
*/

#ifndef PATCHLEVEL_H_
--- 32,38 ----
* PURPOSE
* Version and patch level.
*
! * $Id: patchlevel.h,v 1.15 1994/03/08 15:08:33 liebman Exp $
*/

#ifndef PATCHLEVEL_H_
***************
*** 39,44 ****
#define PATCHLEVEL_H_

#define XFACES_VERSION 3.2
! #define PATCH_LEVEL 0

#endif /* PATCHLEVEL_H_ */
--- 39,44 ----
#define PATCHLEVEL_H_

#define XFACES_VERSION 3.2
! #define PATCH_LEVEL 1

#endif /* PATCHLEVEL_H_ */