Skip to content

Commit

Permalink
[BUGFIX] [OGR provider] Free OGR feature in changeAttributeValues() t…
Browse files Browse the repository at this point in the history
…o avoid memory leak
  • Loading branch information
rouault committed Apr 25, 2016
1 parent 1ba2bc0 commit 0c62441
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -1336,6 +1336,8 @@ bool QgsOgrProvider::changeAttributeValues( const QgsChangedAttributesMap &attr_
{
pushError( tr( "OGR error setting feature %1: %2" ).arg( fid ).arg( CPLGetLastErrorMsg() ) );
}

OGR_F_Destroy( of );
}

if ( OGR_L_SyncToDisk( ogrLayer ) != OGRERR_NONE )
Expand Down

0 comments on commit 0c62441

Please sign in to comment.