diff --git a/modules/core/include/opencv2/core/persistence.hpp b/modules/core/include/opencv2/core/persistence.hpp index fd691cc6cc..eec304d6b7 100644 --- a/modules/core/include/opencv2/core/persistence.hpp +++ b/modules/core/include/opencv2/core/persistence.hpp @@ -257,7 +257,7 @@ Here is how to read the file created by the code sample above: cout << " " << (int)lbpval[i]; cout << ")" << endl; } - fs.release(); + fs2.release(); @endcode Format specification {#format_spec}