Opened 16 years ago

Closed 16 years ago

#2054 closed defect (fixed)

Minor leak in DGN

Reported by: hobu Owned by: warmerdam
Priority: normal Milestone: 1.5.0
Component: OGR_SF Version: unspecified
Severity: trivial Keywords:
Cc:

Description

Change History (3)

comment:1 by hobu, 16 years ago

==30188== 574 (36 direct, 538 indirect) bytes in 1 blocks are definitely lost in loss record 165 of 218
==30188==    at 0x4022F0C: operator new(unsigned) (vg_replace_malloc.c:163)
==30188==    by 0x488B573: OGRStyleMgr::CreateStyleToolFromStyleString(char const*) (ogrfeaturestyle.cpp:434)
==30188==    by 0x488B9A8: OGRStyleMgr::GetPart(int, char const*) (ogrfeaturestyle.cpp:399)
==30188==    by 0x47E5961: OGRDGNLayer::TranslateLabel(OGRFeature*) (ogrdgnlayer.cpp:875)
==30188==    by 0x47E5ED2: OGRDGNLayer::CreateFeatureWithGeom(OGRFeature*, OGRGeometry*) (ogrdgnlayer.cpp:982)
==30188==    by 0x47E637A: OGRDGNLayer::CreateFeature(OGRFeature*) (ogrdgnlayer.cpp:937)
==30188==    by 0x48093B1: OGR_L_CreateFeature (ogrlayer.cpp:440)
==30188==    by 0x6728DD1: _wrap_Layer_CreateFeature (ogr_wrap.cpp:3021)
==30188==    by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5)
==30188==    by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5)
==30188==    by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5)
==30188==    by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5)
==30188==    by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5)
==30188==    by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5)
==30188==    by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5)
==30188==    by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5)
==30188==    by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5)
==30188==    by 0x80CA186: PyEval_EvalCode (in /usr/bin/python2.5)
==30188==    by 0x80E9697: PyRun_FileExFlags (in /usr/bin/python2.5)
==30188==    by 0x80E9926: PyRun_SimpleFileExFlags (in /usr/bin/python2.5)
==30188== 

comment:2 by warmerdam, 16 years ago

Status: newassigned

This problem can be reproduced with:

valgrind ogr2ogr -f DGN out.dgn autotest/ogr/data/smalltest.dgn 

comment:3 by warmerdam, 16 years ago

Resolution: fixed
Status: assignedclosed

Fix leak of poLabel object in r13321.

Note: See TracTickets for help on using tickets.