Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BUGFIX] [OGR provider] Free OGR feature in changeAttributeValues() t…
…o avoid memory leak
  • Loading branch information
rouault committed May 29, 2016
1 parent 7809c8e commit b0e3b13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -1301,6 +1301,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 b0e3b13

Please sign in to comment.