Skip to content

Commit 6c20fa9

Browse files
committed
GPX: fix memory leak when streaming to /vsistdout/
1 parent 8f89865 commit 6c20fa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gdal/ogr/ogrsf_frmts/gpx/ogrgpxdatasource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ OGRGPXDataSource::~OGRGPXDataSource()
116116
VSIFWriteL(szMetadata, 1, strlen(szMetadata), fpOutput);
117117
}
118118
}
119-
VSIFCloseL( fpOutput);
120119
}
120+
VSIFCloseL( fpOutput);
121121
}
122122

123123
for( int i = 0; i < nLayers; i++ )

0 commit comments

Comments
 (0)