You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possible memory leak of cgroup in Domain.DelThrottleGroup #2
virDomainDelThrottleGroup takes const char *group and copies what it needs, so the
caller keeps ownership. cgroup is a local that is never stored or returned, so nothing
else can free it either. Both the error return and the success return drop it.
The rest of the file already does this correctly. Of the 73 C.CString calls in
domain.go, 71 are followed by defer C.free; this one and SetThrottleGroup at line
6103 are the only two that are not.
Activity
andreabolognani commentedon Aug 31, 2026
Development of libvirt-go-module happens on GitLab: https://gitlab.com/libvirt/libvirt-go-module
Since you seem to already have a fix prepared, you can just open a merge request for it.