Bug 264631

Summary: RDMA/mlx5: Fix memory leak in error flow for subscribe event
Product: Base System Reporter: xiaohuizhang <xiaohuizhang>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
a possible patch none

Description xiaohuizhang 2022-06-12 11:55:27 UTC
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2023-12-28 11:29:37 UTC
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.