diff --git a/src/parallels/parallels_utils.c b/src/parallels/parallels_utils.c index 89a0d8979e5cd38237b2c03e64f3485f2b6adc75..521fd9739407484fc278ce1de7a16f87c11e04ad 100644 --- a/src/parallels/parallels_utils.c +++ b/src/parallels/parallels_utils.c @@ -37,23 +37,17 @@ static int 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);