IplImage *in;
CvMemStorage *storage = cvCreateMemStorage (20506);
CvSeq *contours=NULL;
CvPoint *PointArray=NULL;
for()
{
//image processing and feature extraction code here
cvClearMemStorage (storage); //clear memory area
free (PointArray);
cvReleaseImage (&in);
}
At the end of each iteration i ma releasing memory but still i get memory shortage error after
processing 2200 images in a loop