4paradigm / 4paradigm/OpenMLDB
ut: alloc-dealloc-mismatch (operator new [] vs free) in api_server_test
- 主要言語
- C++
- スター
- 1.7k
- フォーク
- 331
- 平均マージ
- 12日 12時間
- マージ済み PR(30日)
- 1
説明
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.
コントリビューションガイド
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 70/100