Skip to content

Commit

Permalink
Fix leak
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 25, 2021
1 parent abdfcb7 commit 91e3d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/providers/ogr/qgsogrprovidermetadata.cpp
Expand Up @@ -1323,6 +1323,7 @@ QList<QgsProviderSublayerDetails> QgsOgrProviderMetadata::querySublayers( const
if ( char **vectorLayerNames = GDALGroupGetVectorLayerNames( group, nullptr ) )
{
const QStringList layers = QgsOgrUtils::cStringListToQStringList( vectorLayerNames );
CSLDestroy( vectorLayerNames );
// attach path to matching layers
for ( const QString &layer : layers )
{
Expand All @@ -1346,6 +1347,7 @@ QList<QgsProviderSublayerDetails> QgsOgrProviderMetadata::querySublayers( const
GDALGroupRelease( subgroup );
}
}
CSLDestroy( subgroupNames );
}
};

Expand Down

0 comments on commit 91e3d8a

Please sign in to comment.