qemuBuildChrDeviceCommandLine: Don't leak devstr

It's caller's responsibility to free return value of
qemuBuildChrDeviceStr().
This commit is contained in:
Michal Privoznik 2013-07-12 19:18:29 +02:00
parent 0f9e67bfad
commit 797b1ffce1
1 changed files with 1 additions and 0 deletions

View File

@ -6608,6 +6608,7 @@ qemuBuildChrDeviceCommandLine(virCommandPtr cmd,
return -1;
virCommandAddArgList(cmd, "-device", devstr, NULL);
VIR_FREE(devstr);
return 0;
}