Skip to content

Commit

Permalink
Update vl_covdet.c
Browse files Browse the repository at this point in the history
Fix a memory leak.
  • Loading branch information
pmoulon authored and vedaldi committed Oct 2, 2014
1 parent bc5d49f commit 8d7e550
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toolbox/sift/vl_covdet.c
Expand Up @@ -631,8 +631,8 @@ mexFunction(int nout, mxArray *out[],

case VL_COVDET_DESC_PATCH:
{
vl_size numFeatures ;
VlCovDetFeature const * feature ;
vl_size numFeatures ;
VlCovDetFeature const * feature ;
vl_index i ;
vl_size w = 2*patchResolution + 1 ;
float * desc ;
Expand Down Expand Up @@ -753,6 +753,7 @@ mexFunction(int nout, mxArray *out[],
}
mexPrintf("time: %f\n",vl_toc());
mexPrintf("threshold: %f\n",liop->intensityThreshold);
vl_liopdesc_delete(liop);
break;
}

Expand Down

0 comments on commit 8d7e550

Please sign in to comment.