Skip to content

Commit

Permalink
dense: close file in reading invalid depth-map (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanin authored Jul 16, 2021
1 parent 1a626b6 commit 7cb9b40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/MVS/DepthMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,7 @@ bool MVS::ImportDepthDataRaw(const String& fileName, String& imageFileName,
header.imageWidth < header.depthWidth || header.imageHeight < header.depthHeight)
{
DEBUG("error: invalid depth-data file '%s'", fileName.c_str());
fclose(f);
return false;
}

Expand Down

0 comments on commit 7cb9b40

Please sign in to comment.