4paradigm / 4paradigm/OpenMLDB

ut: alloc-dealloc-mismatch (operator new [] vs free) in api_server_test

Đang mở Phù hợp với người mới
#2,153 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug wontfix
Ngôn ngữ chính
C++
Star
1.7k
Fork
331
Merge trung bình
12 ngày 12 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Ref #358
```
==7595==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs free) on 0x60600024df40
```
https://github.com/4paradigm/OpenMLDB/blob/326295840f6c2932c2d47937f8cf0ddf6c238664/hybridse/include/base/fe_slice.h#L104
is new [], we should use delete [], not free.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

The issue points to a specific line in hybridse/include/base/fe_slice.h where memory allocated with new[] is incorrectly freed with free. Start by examining that file around line 104 to understand the context. Look for the corresponding deallocation call and replace free with delete[]. Run the api_server_test with address sanitizer to verify the fix resolves the alloc-dealloc-mismatch error.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
70/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.