Skip to content

Commit

Permalink
fixed netcdf memory leaks (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonguo committed Jan 16, 2020
1 parent b852d90 commit f36e201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/gdal/frmts/gsky_netcdf/netcdfdataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7017,6 +7017,7 @@ GDALDataset *netCDFDataset::Open( GDALOpenInfo *poOpenInfo )
int iBand = (int)band - 1;
reqBands.push_back(iBand);
}
CSLDestroy(psBands);
}

const char *srsCf = CSLFetchNameValue(poOpenInfo->papszOpenOptions, "srs_cf");
Expand Down Expand Up @@ -11280,7 +11281,6 @@ CPLErr netCDFDataset::CreateGrpVectorLayers( int nCdfId,
static CPLErr NCDFGetCoordAndBoundVarFullNames( int nCdfId,
char ***ppapszVars )
{
*ppapszVars = nullptr;
int nVars = 0;
NCDF_ERR(nc_inq( nCdfId, nullptr, &nVars, nullptr, nullptr));

Expand Down

0 comments on commit f36e201

Please sign in to comment.