Skip to content
Permalink
Browse files

[BUGFIX] [OGR provider] Free OGR feature in changeAttributeValues() t…

…o avoid memory leak
  • Loading branch information
rouault committed Apr 25, 2016
1 parent 7809c8e commit b0e3b130b6ea23837bee7fb6318a4ee7f696fad7
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -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 )

0 comments on commit b0e3b13

Please sign in to comment.
You can’t perform that action at this time.