Memory leak in OGRLIBKMLDataSource::FindSchema
|Reported by:||damiandixon||Owned by:||warmerdam|
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 );