title: cvHoughLines2 memory leak
body: <p>Does OpenCV method HoughLines2 has a memory leak that's not been fixed since now (version 2.1.0.6), or there's something wrong with this part of my code ? </p>
  
  <pre><code>CvMemStorage *storage = cvCreateMemStorage(0);
  CvSeq *linesSeq = 0;
  double smallL = 0.0, bigL=0.0, smallA = 0.0, bigA = 0.0;
  linesSeq = cvHoughLines2(cannyImg, storage, CV_HOUGH_PROBABILISTIC, 1, CV_PI/180.0, 30, 50, 15);
  for( int i = 0;i &lt; linesSeq-&gt;total; i++ ){
      CvPoint* line = (CvPoint*)cvGetSeqElem(linesSeq,i);
      double sz = sqrt((line[0].x- line[1].x) *(line[0].x- line[1].x) + (line[0].y -line[1].y)*(line[0].y-line[1].y));
      if(sz &lt; 70.0 ) smallL+=1.0;
      else bigL +=1.0;
  
      double deltaY = line[1].y - line[0].y;
      double deltaX = line[1].x - line[0].x;
      double angle;
      if ( abs(deltaX) &gt; 1e-7){
          angle = atan2(deltaY, deltaX);
  
          if (angle &lt; 0.1) smallA+=1.0;
          else bigA+=1.0;
      }else{
  
      }
   }
  
  cvClearMemStorage(storage);
  cvClearSeq(linesSeq);
  cvReleaseImage(&amp;cannyImg);
  </code></pre>
  
  <p>Thank you</p>