Ticket #3281 (closed defect: fixed)
[PATCH] Fix memory leak in DXF writer
| Reported by: | rouault | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.7.0 |
| Component: | OGR_SF | Version: | unspecified |
| Severity: | normal | Keywords: | DXF |
| Cc: |
Description
ogr2ogr -f DXF out.dxf assorted.dxf shows memory leaks.
One fix is obvious (missing CSLDestroy()). The other one is less. I propose to fix it by deleting the poTool object returned by oSM.GetPart?(0), but I'm not clear if that matches the intended life cycle of this object. I suppose this is somewhat correct though as in MITAB's ITABFeaturePen::SetPenFromStyleString?() it looks similar.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

