mirror of
https://github.com/libvirt/libvirt.git
synced 2026-07-31 08:38:16 -05:00
util: Resolve resource leak
Need to free @groups in the parent on success similar to other APIs (virFile*) which use virGetGroupList and virFork. Reported by Coverity.
This commit is contained in:
@@ -606,6 +606,7 @@ virExec(virCommandPtr cmd)
|
||||
|
||||
cmd->pid = pid;
|
||||
|
||||
VIR_FREE(groups);
|
||||
VIR_FREE(binarystr);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user