提交 16818ad4 编写于 作者: J John Ferlan 提交者: Peter Krempa

util: Fix memory leak in virPCIProbeStubDriver

Since 9ea90206, @drvpath could be overwritten if we jumped to recheck

Found by Coverity.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
上级 52e3c2b4
......@@ -1018,6 +1018,7 @@ virPCIProbeStubDriver(virPCIStubDriver driver)
goto cleanup;
}
VIR_FREE(drvpath);
goto recheck;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册