Opened 12 years ago

Closed 12 years ago

#4862 closed defect (fixed)

Memory leak in OGRLIBKMLDataSource::FindSchema

Reported by: damiandixon Owned by: warmerdam
Priority: normal Milestone: 1.9.3
Component: OGR_SF Version: 1.9.1
Severity: normal Keywords: libkml schema
Cc:

Description

The variable pszName is allocated at line 512 and is not freed on exit from the function, nor is it assigned to anything else.

The fix is to add the following just before exit from the function:

if ( pszName )

CPLFree ( pszName );

Change History (1)

comment:1 by Even Rouault, 12 years ago

Component: defaultOGR_SF
Keywords: libkml schema added
Milestone: 1.9.3
Resolution: fixed
Status: newclosed

Fixed in trunk (r25130) and branches/1.9 (r25131)

Note: See TracTickets for help on using tickets.