提交 687554cd 编写于 作者: J John Ferlan 提交者: Ján Tomko

locking: Resolve resource leaks on non error path

Both 'dir' and 'path' were not free'd on successful return
上级 65aa3e34
......@@ -365,6 +365,8 @@ retry:
VIR_DEBUG("Lockspace %s has been registered", path);
}
VIR_FREE(path);
VIR_FREE(dir);
return 0;
error_unlink:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册