提交 a1d2d2b2 编写于 作者: J Jim Meyering

src/virsh.c (cmdCapabilities): Plug a small leak.

上级 34dff95b
Wed Jan 30 20:49:34 CET 2008 Jim Meyering <meyering@redhat.com>
* src/virsh.c (cmdCapabilities): Plug a small leak.
* src/test.c (testLoadDomain): Avoid leaks upon failure.
Avoid used-uninitialized errors in test driver.
......
......@@ -2020,6 +2020,7 @@ cmdCapabilities (vshControl * ctl, vshCmd * cmd ATTRIBUTE_UNUSED)
return FALSE;
}
vshPrint (ctl, "%s\n", caps);
free (caps);
return TRUE;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册