Skip to content

Commit

Permalink
fixed memory leak in findHomography tests
Browse files Browse the repository at this point in the history
(cherry picked from commit ec5244a)
  • Loading branch information
ilya-lavrenov authored and asmorkalov committed Oct 26, 2015
1 parent 1ea6568 commit 15b313c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/calib3d/test/test_homography.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
//
// Copyright (C) 2000-2008, Intel Corporation, all rights reserved.
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
// Copyright (C) 2015, Itseez Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
Expand Down Expand Up @@ -562,6 +563,9 @@ void CV_HomographyTest::run(int)
default: continue;
}
}

delete[]src_data;
src_data = NULL;
}
}

Expand Down

0 comments on commit 15b313c

Please sign in to comment.