Investigate memory management issue with HttpRequest URLs in http_client.zig
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 重構
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- zig
- 領域
- testing
研究方向
從 http_client.zig 開始,追蹤 HttpRequest URL 在初始化和 deinit 過程中的所有權,然後檢查所參照的測試設定。確定全域字串的處理方式,以及現有的重複解決方案是否仍然需要。完成的標準是請求清理不再嘗試釋放不屬於它的全域字串,且受影響的測試通過。
由索引模型根據 Issue 內容生成。
描述
Review and refactor how memory is managed for HttpRequest URLs, particularly in test scenarios where the deinit method tries to free global strings. Consider alternative approaches for test setups or memory management.
Reference:
// TODO: The request de-allocates the memory used by the url in the deinit method.
// Because of this, with this test, we have to dupe it or else it cant deinit a global string.
// Needing to do this is a sign that something is off here, but also newing up requests directly
// isn't really intended either. Either way, need to look into this further.
- 主要語言
- Zig
- 星號
- 11
- 分支
- 1
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
bradcypert/httpspec 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 42/100
bradcypert/httpspec#22 · 1 則留言 ·
-
enhancement
難度 3/5 1-2 天 新手友好度 45/100
bradcypert/httpspec#12 ·
查看 bradcypert/httpspec 的全部 Issue
相似的 Issue
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
jbaruch/coding-policy#497 ·
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
-
test-change-proposal
難度 2/5 1-3 小時 新手友好度 65/100
web-platform-tests/interop#1455 ·
-
.NET Flaky Test Testing Tests
難度 2/5 1-3 小時 新手友好度 84/100
getsentry/sentry-dotnet#5617 · 1 則留言 ·