Skip to content

Commit 47d476e

Browse files
committed
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2 parents 509a91f + 8864b30 commit 47d476e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/surface_matching/src/pose_3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ int PoseCluster3D::readPoseCluster(FILE* f)
273273
status = fread(&id, sizeof(int), 1, f);
274274
status = fread(&numVotes, sizeof(int), 1, f);
275275
status = fread(&numPoses, sizeof(int), 1, f);
276-
fclose(f);
277276

278277
poseList.clear();
279278
poseList.resize(numPoses);
@@ -283,6 +282,7 @@ int PoseCluster3D::readPoseCluster(FILE* f)
283282
poseList[i]->readPose(f);
284283
}
285284

285+
fclose(f);
286286
return 0;
287287
}
288288

0 commit comments

Comments
 (0)