Skip to content

Commit

Permalink
GPX: fix memory leak when streaming to /vsistdout/
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Sep 6, 2019
1 parent 8f89865 commit 6c20fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdal/ogr/ogrsf_frmts/gpx/ogrgpxdatasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ OGRGPXDataSource::~OGRGPXDataSource()
VSIFWriteL(szMetadata, 1, strlen(szMetadata), fpOutput);
}
}
VSIFCloseL( fpOutput);
}
VSIFCloseL( fpOutput);
}

for( int i = 0; i < nLayers; i++ )
Expand Down

0 comments on commit 6c20fa9

Please sign in to comment.