From 21641d04a73aeb612aa614611595bc0fad165fc6 Mon Sep 17 00:00:00 2001 From: Nghia Ho Date: Wed, 14 Aug 2013 23:36:29 +1000 Subject: [PATCH] Fixed mismatching allocation and deallocation: el_ptr --- samples/c/mushroom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/c/mushroom.cpp b/samples/c/mushroom.cpp index 5763b12464..60eb9f066c 100644 --- a/samples/c/mushroom.cpp +++ b/samples/c/mushroom.cpp @@ -90,7 +90,7 @@ static int mushroom_read_database( const char* filename, CvMat** data, CvMat** m } cvReleaseMemStorage( &storage ); - delete el_ptr; + delete [] el_ptr; return 1; }