Opened 13 years ago

Closed 13 years ago

#791 closed defect (fixed)

Memory leaks on FDO Schema and FdoCommon

Reported by: brentrobinson Owned by: brentrobinson
Priority: minor Milestone: 3.7.0
Component: FDO API Version: 3.7.0
Severity: 3 Keywords: memory leak
Cc: External ID:

Description

The following FDO functions have memory leaks:

FdoClassDefinition::SetBaseClass() - leaks the base classes while looking for the top base class.

FdoSchemaUtil::DeepCopyFdoAssociationPropertyDefinition() - leaks the source property definition if it is revisited while deep copying the associated class.

Change History (1)

comment:1 by brentrobinson, 13 years ago

Resolution: fixed
Status: newclosed

Revision: 6274 Author: brentrobinson Date: 11:21:49 AM, Wednesday, October 05, 2011 Message: Ticket#791: fixes a couple of memory leaks:

FdoClassDefinition::SetBaseClass() - fixed refcount leak while looking for top base class.

FdoCommonSchemaUtil::DeepCopyFdoAssociationPropertyDefinition() - Add source/destination property pair to context map earlier. This prevents copying this property twice, and adding it to the map twice, if it is revisited while deep copying the associated class. Adding the map a second time causes the original pair of properties to be leaked.


Modified : /trunk/Fdo/Unmanaged/Src/Fdo/Schema/ClassDefinition.cpp Modified : /trunk/Utilities/Common/Src/FdoCommonSchemaUtil.cpp

Note: See TracTickets for help on using tickets.