[fdo-trac] #808: Memory leak in FdoWfsDescribeSchemaCommand.cpp
FDO
trac_fdo at osgeo.org
Wed Jan 18 21:18:17 EST 2012
#808: Memory leak in FdoWfsDescribeSchemaCommand.cpp
----------------------------+-----------------------------------------------
Reporter: ChristineBao | Owner: christine bao
Type: defect | Status: new
Priority: major | Milestone: 3.6.0
Component: WFS Provider | Version: 3.6.0
Severity: 3 | Keywords:
External_id: |
----------------------------+-----------------------------------------------
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;
}
}}}
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/808>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list