Summary: | RDMA/mlx5: Fix memory leak in error flow for subscribe event | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | xiaohuizhang <xiaohuizhang> | ||||
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | New --- | ||||||
Severity: | Affects Only Me | ||||||
Priority: | --- | ||||||
Version: | Unspecified | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Comment on attachment 234637 [details]
a possible patch
^Triage: convert this to text/plain and set the Patch flag so that the automation can see it.
|
Created attachment 234637 [details] a possible patch In case the second xa_insert() fails, the obj_event is not released. Fix the error unwind flow to free that memory to avoid a memory leak.