Skip to content

Commit 069570d

Browse files
authored
Merge pull request #108 from alicevision/bug/mallocDelete
[bug] pair malloc with free, not delete
2 parents 63f11cd + 8f818c3 commit 069570d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/popsift/popsift.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ SiftJob::SiftJob( int w, int h, const float* imageData )
380380

381381
SiftJob::~SiftJob( )
382382
{
383-
delete [] _imageData;
383+
free( _imageData );
384384
}
385385

386386
void SiftJob::setImg( popsift::ImageBase* img )

0 commit comments

Comments
 (0)