Opened 12 years ago

Closed 12 years ago

#808 closed defect (fixed)

Memory leak in FdoWfsDescribeSchemaCommand.cpp

Reported by: ChristineBao Owned by: christine bao
Priority: major Milestone: 3.6.0
Component: WFS Provider Version: 3.6.0
Severity: 3 Keywords:
Cc: Greg Boone <greg.boone@…> External ID:

Description

A memory leak in FdoWfsDescribeSchemaCommand.cpp.

            if(mSchemaName == ret->GetItem(i)->GetName())  //leak FdoSchemaElement?
            {
                existSchema = true;
                break;
            }

Should be

            FdoPtr<FdoSchemaElement> schema = ret->GetItem(i);
            FdoStringP schemaName = schema->GetName();
            if(mSchemaName == schemaName)
            {
                existSchema = true;
                break;
            }

Change History (1)

comment:1 by ChristineBao, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r6352.

Note: See TracTickets for help on using tickets.