                          CLIPS DISCREPANCY REPORT

DR #                : 0829
DATE                : 11/23/98
STATUS              : OPEN

REPORTED BY         : Gary Riley
ORGANIZATION        : 
PHONE #             :
ADDRESS             :

CLIPS VERSION       : CLIPS 6.1
HOST                : All
OS                  : All

********************
PROBLEM DESCRIPTION:
********************

Garbage partial matches generated by object pattern matching
were not garbage collected until a run command was issued.
This would cause increasing memory usage under situations 
where activations were added and removed from the agenda,
but rules were never fired.

*****************
COMMAND SEQUENCE:
*****************

***********
RESOLUTION:
***********

In the file OBJRTMCH.C, add 

   #include "engine.h"

after

   #include "drive.h"

In the file OBJRTMCH.C, add the following code at the bottom
of the ObjectNetworkAction function:

   /*=========================================*/
   /* Free partial matches that were released */
   /* by the assertion of the fact.           */
   /*=========================================*/

   if (ExecutingRule == NULL) FlushGarbagePartialMatches();


*******
STATUS:
*******

FIXED BY            : Gary Riley
DATE                : 11/23/98
IMPLEMENTED BY      : Gary Riley
IN VERSION          : 6.2
DATE                :
DOCUMENTED BY       :
DATE                :
TESTED BY           :
DATE                :
APPROVED BY         :
DATE                :
