scmd was used for debugging and I forgot to remove it before
commit, so remove it now.
Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
parallelsDoCmdRun(char **outbuf, const char *binary, va_list list)
{
virCommandPtr cmd = virCommandNewVAList(binary, list);
- char *scmd = NULL;
int ret = -1;
if (outbuf)
virCommandSetOutputBuffer(cmd, outbuf);
- scmd = virCommandToString(cmd);
- if (!scmd)
- goto cleanup;
-
if (virCommandRun(cmd, NULL))
goto cleanup;
ret = 0;
cleanup:
- VIR_FREE(scmd);
virCommandFree(cmd);
if (ret && outbuf)
VIR_FREE(*outbuf);