Skip to content

Commit 6f22ba2

Browse files
committed
Fixed clang0analyzer warning: 'Bad deallocator'.
Memory allocated by 'new[]' should be deallocated by 'delete[]', not 'delete'.
1 parent a241d28 commit 6f22ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinydict/tinydict.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ TinyDictZStream::~TinyDictZStream()
604604
if ( unp_buffer )
605605
free( unp_buffer );
606606
if ( chunks )
607-
delete chunks;
607+
delete [] chunks;
608608
if ( offsets )
609609
delete offsets;
610610
}

0 commit comments

Comments
 (0)