Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 658663 Details for
Bug 878376
Coverity scan founds some resource leaks and USE_AFTER_FREE
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
libvirt covscan error result
libvirt-0.10.2-11.el6.err (text/plain), 1.21 MB, created by
zhe peng
on 2012-12-06 10:44:23 UTC
(
hide
)
Description:
libvirt covscan error result
Filename:
MIME Type:
Creator:
zhe peng
Created:
2012-12-06 10:44:23 UTC
Size:
1.21 MB
patch
obsolete
>Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virkeepalive.c:117: bad_sizeof: Taking the size of pointer parameter "ka" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor.c:901: bad_sizeof: Taking the size of pointer parameter "mon" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virkeepalive.c:398: bad_sizeof: Taking the size of pointer parameter "ka" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnetclient.c:1924: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virkeepalive.c:318: bad_sizeof: Taking the size of pointer parameter "ka" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnetsocket.c:1371: bad_sizeof: Taking the size of pointer parameter "sock" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnetsocket.c:1414: bad_sizeof: Taking the size of pointer parameter "sock" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnetclient.c:1123: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virkeepalive.c:145: bad_sizeof: Taking the size of arithmetic expression "now - ka->lastPacketReceived" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virkeepalive.c:145: bad_sizeof: Taking the size of pointer parameter "ka" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor.c:836: bad_sizeof: Taking the size of pointer parameter "mon" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnetclient.c:1951: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnetserverclient.c:1120: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1072: bad_sizeof: Taking the size of pointer parameter "ctxt" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1079: bad_sizeof: Taking the size of pointer parameter "ctxt" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1086: bad_sizeof: Taking the size of pointer parameter "ctxt" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1072: bad_sizeof: Taking the size of pointer parameter "sess" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1079: bad_sizeof: Taking the size of pointer parameter "sess" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1086: bad_sizeof: Taking the size of pointer parameter "sess" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1072: bad_sizeof: Taking the size of "dname", which is the address of an object, is suspicious. Did you intend the size of the object itself? > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1079: bad_sizeof: Taking the size of "dname", which is the address of an object, is suspicious. Did you intend the size of the object itself? > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:741: bad_sizeof: Taking the size of pointer parameter "cacert" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:741: bad_sizeof: Taking the size of pointer parameter "cert" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:741: bad_sizeof: Taking the size of pointer parameter "key" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1227: bad_sizeof: Taking the size of pointer parameter "ctxt" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnettlscontext.c:1227: bad_sizeof: Taking the size of pointer parameter "hostname" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/util/event_poll.c:134: bad_sizeof: Taking the size of pointer parameter "cb" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/util/event_poll.c:134: bad_sizeof: Taking the size of pointer parameter "ff" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/util/event_poll.c:134: bad_sizeof: Taking the size of pointer parameter "opaque" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virkeepalive.c:287: bad_sizeof: Taking the size of pointer parameter "ka" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:164: bad_sizeof: Taking the size of pointer parameter "line" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:169: bad_sizeof: Taking the size of pointer parameter "line" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:164: bad_sizeof: Taking the size of pointer parameter "mon" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:169: bad_sizeof: Taking the size of pointer parameter "mon" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor_text.c:205: bad_sizeof: Taking the size of pointer parameter "mon" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2546: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2866: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2900: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2906: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor.c:456: bad_sizeof: Taking the size of arithmetic expression "mon->msg->txBuffer + mon->msg->txOffset" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor.c:456: bad_sizeof: Taking the size of arithmetic expression "mon->msg->txLength - mon->msg->txOffset" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor.c:456: bad_sizeof: Taking the size of pointer parameter "mon" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor.c:464: bad_sizeof: Taking the size of pointer parameter "mon" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/qemu/qemu_monitor.c:352: bad_sizeof: Taking the size of pointer parameter "mon" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/rpc/virnetserverclient.c:868: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2503: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2733: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2740: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2635: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/daemon/remote.c:2642: bad_sizeof: Taking the size of pointer parameter "client" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/util/event_poll.c:241: bad_sizeof: Taking the size of pointer parameter "cb" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/util/event_poll.c:241: bad_sizeof: Taking the size of pointer parameter "ff" is suspicious. > >Error: BAD_SIZEOF (CWE-467): >libvirt-0.10.2/src/util/event_poll.c:241: bad_sizeof: Taking the size of pointer parameter "opaque" is suspicious. > >Error: CHECKED_RETURN (CWE-252): >libvirt-0.10.2/src/rpc/virnetsocket.c:452: cond_false: Condition "e != 0", taking false branch >libvirt-0.10.2/src/rpc/virnetsocket.c:457: if_end: End of if statement >libvirt-0.10.2/src/rpc/virnetsocket.c:460: cond_true: Condition "runp", taking true branch >libvirt-0.10.2/src/rpc/virnetsocket.c:463: cond_false: Condition "(fd = socket(runp->ai_family, runp->ai_socktype, runp->ai_protocol)) < 0", taking false branch >libvirt-0.10.2/src/rpc/virnetsocket.c:467: if_end: End of if statement >libvirt-0.10.2/src/rpc/virnetsocket.c:469: check_return: Calling function "setsockopt(fd, 1, 2, &opt, 4U)" without checking return value. This library function may fail and return an error code. >libvirt-0.10.2/src/rpc/virnetsocket.c:469: unchecked_value: No check of the return value of "setsockopt(fd, 1, 2, &opt, 4U)". > >Error: CONSTANT_EXPRESSION_RESULT (CWE-569): >/usr/include/bits/stdio2.h:279: pointless_expression: The expression 1 /* !0 */ || 1 /* !0 */ does not accomplish anything because it evaluates to either of its identical operands, 1 /* !0 */. Did you intend the operands to be different? > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/gnulib/lib/strerror_r.c:152: assignment: Assigning: "msg" = "NULL". >libvirt-0.10.2/gnulib/lib/strerror_r.c:154: null: At condition "msg", the value of "msg" must be NULL. >libvirt-0.10.2/gnulib/lib/strerror_r.c:154: dead_error_condition: The condition "msg" cannot be true. >libvirt-0.10.2/gnulib/lib/strerror_r.c:155: dead_error_line: Execution cannot reach this statement "return safe_copy(buf, bufle...". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/conf/domain_conf.c:13956: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/conf/domain_conf.c:13957: const: When switching on "(enum virDomainHyperv)i", the value of "i" must be equal to 0. >libvirt-0.10.2/src/conf/domain_conf.c:13965: dead_error_condition: The switch value "(enum virDomainHyperv)i" cannot be "VIR_DOMAIN_HYPERV_LAST". >libvirt-0.10.2/src/conf/domain_conf.c:13965: dead_error_begin: Execution cannot reach this statement "case VIR_DOMAIN_HYPERV_LAST:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_command.c:4271: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/qemu/qemu_command.c:4272: const: When switching on "(enum virDomainHyperv)i", the value of "i" must be equal to 0. >libvirt-0.10.2/src/qemu/qemu_command.c:4279: dead_error_condition: The switch value "(enum virDomainHyperv)i" cannot be "VIR_DOMAIN_HYPERV_LAST". >libvirt-0.10.2/src/qemu/qemu_command.c:4279: dead_error_begin: Execution cannot reach this statement "case VIR_DOMAIN_HYPERV_LAST:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/rpc/virnetclient.c:442: cond_notnull: Condition "privkey = virBufferContentAndReset(&buf)", taking true branch. Now the value of "privkey" is not NULL. >libvirt-0.10.2/src/rpc/virnetclient.c:448: notnull: At condition "privkey", the value of "privkey" cannot be NULL. >libvirt-0.10.2/src/rpc/virnetclient.c:448: dead_error_condition: The condition "!privkey" cannot be true. >libvirt-0.10.2/src/rpc/virnetclient.c:449: dead_error_begin: Execution cannot reach this statement "virBufferAsprintf(&buf, "%s...". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/rpc/virnetserverclient.c:1182: cond_null: Condition "ka = virKeepAliveNew(interval, count, client, virNetServerClientKeepAliveSendCB(void *, virNetMessagePtr), virNetServerClientKeepAliveDeadCB(void *), virObjectFreeCallback(void *))", taking false branch. Now the value of "ka" is NULL. >libvirt-0.10.2/src/rpc/virnetserverclient.c:1195: null: At condition "ka", the value of "ka" must be NULL. >libvirt-0.10.2/src/rpc/virnetserverclient.c:1195: dead_error_condition: The condition "ka" cannot be true. >libvirt-0.10.2/src/rpc/virnetserverclient.c:1196: dead_error_line: Execution cannot reach this statement "virKeepAliveStop(ka);". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/util/storage_file.c:317: cond_at_least: Condition "size == 0U", taking false branch. Now the value of "size" is at least 1. >libvirt-0.10.2/src/util/storage_file.c:324: at_least: At condition "size + 1U == 0U", the value of "size" must be at least 1. >libvirt-0.10.2/src/util/storage_file.c:317: cond_cannot_single: Condition "size == 0U", taking false branch. Now the value of "size" cannot be equal to 0. >libvirt-0.10.2/src/util/storage_file.c:324: cannot_single: At condition "size + 1U == 0U", the value of "size" cannot be equal to 0. >libvirt-0.10.2/src/util/storage_file.c:324: dead_error_condition: The condition "size + 1U == 0U" cannot be true. >libvirt-0.10.2/src/util/storage_file.c:325: dead_error_line: Execution cannot reach this statement "return 1;". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/nwfilter/nwfilter_driver.c:185: cond_cannot_single: Condition "privileged", taking true branch. Now the value of "privileged" cannot be equal to 0. >libvirt-0.10.2/src/nwfilter/nwfilter_driver.c:218: cannot_single: At condition "privileged", the value of "privileged" cannot be equal to 0. >libvirt-0.10.2/src/nwfilter/nwfilter_driver.c:218: dead_error_condition: The condition "privileged" must be true. >libvirt-0.10.2/src/nwfilter/nwfilter_driver.c:222: dead_error_begin: Execution cannot reach this statement "userdir = virGetUserDirecto...". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/lxc/lxc_driver.c:877: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/lxc/lxc_driver.c:882: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/lxc/lxc_driver.c:877: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/lxc/lxc_driver.c:893: equality_cond: Jumping to case "1". >libvirt-0.10.2/src/lxc/lxc_driver.c:877: incr: Incrementing "i". The value of "i" is now 2. >libvirt-0.10.2/src/lxc/lxc_driver.c:877: cond_const: Condition "i < 3", taking true branch. Now the value of "i" is equal to 2. >libvirt-0.10.2/src/lxc/lxc_driver.c:881: between: When switching on "i", the value of "i" must be between 0 and 2. >libvirt-0.10.2/src/lxc/lxc_driver.c:881: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/lxc/lxc_driver.c:917: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_driver.c:13878: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:13882: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:13878: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:13889: equality_cond: Jumping to case "1". >libvirt-0.10.2/src/qemu/qemu_driver.c:13878: incr: Incrementing "i". The value of "i" is now 2. >libvirt-0.10.2/src/qemu/qemu_driver.c:13878: cond_between: Condition "i < 6", taking true branch. Now the value of "i" is between 2 and 5. >libvirt-0.10.2/src/qemu/qemu_driver.c:13881: between: When switching on "i", the value of "i" must be between 0 and 5. >libvirt-0.10.2/src/qemu/qemu_driver.c:13881: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/qemu/qemu_driver.c:13924: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/gnulib/lib/strerror.c:44: assignment: Assigning: "msg" = "NULL". >libvirt-0.10.2/gnulib/lib/strerror.c:45: null: At condition "msg", the value of "msg" must be NULL. >libvirt-0.10.2/gnulib/lib/strerror.c:45: dead_error_condition: The condition "msg" cannot be true. >libvirt-0.10.2/gnulib/lib/strerror.c:46: dead_error_line: Execution cannot reach this statement "return (char *)msg;". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_driver.c:9007: assignment: Assigning: "group" = "NULL". >libvirt-0.10.2/src/qemu/qemu_driver.c:9112: null: At condition "group", the value of "group" must be NULL. >libvirt-0.10.2/src/qemu/qemu_driver.c:9112: dead_error_condition: The condition "group" cannot be true. >libvirt-0.10.2/src/qemu/qemu_driver.c:9113: dead_error_line: Execution cannot reach this statement "virCgroupFree(&group);". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_driver.c:9051: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:9053: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:9051: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:9061: equality_cond: Jumping to case "1". >libvirt-0.10.2/src/qemu/qemu_driver.c:9051: incr: Incrementing "i". The value of "i" is now 2. >libvirt-0.10.2/src/qemu/qemu_driver.c:9051: cond_between: Condition "i < 6", taking true branch. Now the value of "i" is between 2 and 5. >libvirt-0.10.2/src/qemu/qemu_driver.c:9052: between: When switching on "i", the value of "i" must be between 0 and 5. >libvirt-0.10.2/src/qemu/qemu_driver.c:9052: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/qemu/qemu_driver.c:9101: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/nodeinfo.c:1149: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/nodeinfo.c:1153: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/nodeinfo.c:1149: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/nodeinfo.c:1166: equality_cond: Jumping to case "1". >libvirt-0.10.2/src/nodeinfo.c:1149: incr: Incrementing "i". The value of "i" is now 2. >libvirt-0.10.2/src/nodeinfo.c:1231: equality_cond: Jumping to case "6". >libvirt-0.10.2/src/nodeinfo.c:1149: incr: Incrementing "i". The value of "i" is now 7. >libvirt-0.10.2/src/nodeinfo.c:1149: cond_between: Condition "i < 8", taking true branch. Now the value of "i" is between 2 and 7. >libvirt-0.10.2/src/nodeinfo.c:1152: between: When switching on "i", the value of "i" must be between 0 and 7. >libvirt-0.10.2/src/nodeinfo.c:1152: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/nodeinfo.c:1257: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_driver.c:7528: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7532: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7528: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:7540: equality_cond: Jumping to case "1". >libvirt-0.10.2/src/qemu/qemu_driver.c:7528: incr: Incrementing "i". The value of "i" is now 2. >libvirt-0.10.2/src/qemu/qemu_driver.c:7528: cond_const: Condition "i < 3", taking true branch. Now the value of "i" is equal to 2. >libvirt-0.10.2/src/qemu/qemu_driver.c:7531: between: When switching on "i", the value of "i" must be between 0 and 2. >libvirt-0.10.2/src/qemu/qemu_driver.c:7531: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/qemu/qemu_driver.c:7556: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_driver.c:7564: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7572: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7564: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:7585: equality_cond: Jumping to case "1". >libvirt-0.10.2/src/qemu/qemu_driver.c:7564: incr: Incrementing "i". The value of "i" is now 2. >libvirt-0.10.2/src/qemu/qemu_driver.c:7564: cond_const: Condition "i < 3", taking true branch. Now the value of "i" is equal to 2. >libvirt-0.10.2/src/qemu/qemu_driver.c:7571: between: When switching on "i", the value of "i" must be between 0 and 2. >libvirt-0.10.2/src/qemu/qemu_driver.c:7571: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/qemu/qemu_driver.c:7611: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_driver.c:7839: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7843: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7839: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:7842: between: When switching on "i", the value of "i" must be between 0 and 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:7842: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/qemu/qemu_driver.c:7874: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/tools/virsh-domain.c:7005: assignment: Assigning: "params" = "false". >libvirt-0.10.2/tools/virsh-domain.c:7097: const: At condition "params", the value of "params" must be equal to 0. >libvirt-0.10.2/tools/virsh-domain.c:7097: dead_error_condition: The condition "params" cannot be true. >libvirt-0.10.2/tools/virsh-domain.c:7097: dead_error_line: Execution cannot reach this expression ""&"" inside statement "virBufferAsprintf(&buf, "%s...". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_driver.c:7175: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7180: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7175: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:7179: between: When switching on "i", the value of "i" must be between 0 and 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:7179: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/qemu/qemu_driver.c:7220: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/qemu/qemu_driver.c:7226: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7233: equality_cond: Jumping to case "0". >libvirt-0.10.2/src/qemu/qemu_driver.c:7226: incr: Incrementing "i". The value of "i" is now 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:7232: between: When switching on "i", the value of "i" must be between 0 and 1. >libvirt-0.10.2/src/qemu/qemu_driver.c:7232: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/qemu/qemu_driver.c:7282: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/lxc/lxc_driver.c:2173: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/lxc/lxc_driver.c:2177: const: When switching on "i", the value of "i" must be equal to 0. >libvirt-0.10.2/src/lxc/lxc_driver.c:2177: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/lxc/lxc_driver.c:2190: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/lxc/lxc_driver.c:2196: assignment: Assigning: "i" = "0". >libvirt-0.10.2/src/lxc/lxc_driver.c:2199: const: When switching on "i", the value of "i" must be equal to 0. >libvirt-0.10.2/src/lxc/lxc_driver.c:2199: dead_error_condition: The switch value "i" cannot reach the default case. >libvirt-0.10.2/src/lxc/lxc_driver.c:2207: dead_error_begin: Execution cannot reach this statement "default:". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/storage/parthelper.c:132: dead_error_condition: The condition "part->type & 0U" cannot be true. >libvirt-0.10.2/src/storage/parthelper.c:133: dead_error_line: Execution cannot reach this statement "content = "protected";". > >Error: DEADCODE (CWE-561): >libvirt-0.10.2/src/storage/parthelper.c:145: dead_error_condition: The condition "part->type & 0U" cannot be true. >libvirt-0.10.2/src/storage/parthelper.c:146: dead_error_line: Execution cannot reach this statement "content = "protected";". > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/nwfilter/nwfilter_dhcpsnoop.c:576: cond_true: Condition "ifkey == NULL", taking true branch >libvirt-0.10.2/src/nwfilter/nwfilter_dhcpsnoop.c:576: var_compare_op: Comparing "ifkey" to null implies that "ifkey" might be null. >libvirt-0.10.2/src/nwfilter/nwfilter_dhcpsnoop.c:577: cond_false: Condition "ifkey", taking false branch >libvirt-0.10.2/src/nwfilter/nwfilter_dhcpsnoop.c:577: var_deref_model: Passing null pointer "ifkey" to function "strlen(char const *)", which dereferences it. > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1435: assign_zero: Assigning: "proplist" = "NULL". >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1440: cond_true: Condition "tmp = __coverity_strchr(tmp, 10)", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1444: cond_false: Condition "*tmp == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1447: cond_false: Condition "__coverity_strncmp(tmp, "name \"", 6UL /* strlen("name \"") */) == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1450: cond_false: Condition "!(__coverity_strncmp(tmp, type, strlen(type)) == 0)", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1454: cond_false: Condition "*tmp != '.'", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1459: cond_true: Condition "!end", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1462: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1477: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1478: cond_true: Condition "ret < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1479: var_deref_model: Passing null pointer "proplist" to function "qemuCapsFreeStringList(size_t, char **)", which dereferences it. >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1378:5: cond_true: Condition "i < len", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1379:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1379:9: deref_parm_field_in_call: Function "virFree(void *)" dereferences an offset off "values". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:531: assign_zero: Assigning: "keywords" = "NULL". >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:536: cond_true: Condition "!(ret = virJSONValueNewObject())", taking true branch >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:537: goto: Jumping to label "no_memory" >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:565: label: Reached label "no_memory" >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:568: var_deref_model: Passing null pointer "keywords" to function "qemuFreeKeywords(int, char **, char **)", which dereferences it. >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:519:5: cond_true: Condition "i < nkeywords", taking true branch >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:520:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:520:9: deref_parm_field_in_call: Function "virFree(void *)" dereferences an offset off "keywords". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:532: assign_zero: Assigning: "values" = "NULL". >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:536: cond_true: Condition "!(ret = virJSONValueNewObject())", taking true branch >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:537: goto: Jumping to label "no_memory" >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:565: label: Reached label "no_memory" >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:568: var_deref_model: Passing null pointer "values" to function "qemuFreeKeywords(int, char **, char **)", which dereferences it. >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:519:5: cond_true: Condition "i < nkeywords", taking true branch >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:520:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:521:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_monitor_json.c:521:9: deref_parm_field_in_call: Function "virFree(void *)" dereferences an offset off "values". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/remote/remote_driver.c:3702: cond_true: Condition "!state->config", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3703: cond_false: Condition "virAuthGetConfigFilePath(conn, &path) < 0", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:3705: cond_false: Condition "path == NULL", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:3708: if_end: End of if statement >libvirt-0.10.2/src/remote/remote_driver.c:3710: cond_false: Condition "!(state->config = virAuthConfigNew(path))", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:3714: cond_true: Condition "(state->interact + ninteract).id != 0", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3717: switch: Switch case value "16385UL" >libvirt-0.10.2/src/remote/remote_driver.c:3718: switch_case: Reached case "16385UL" >libvirt-0.10.2/src/remote/remote_driver.c:3720: break: Breaking from switch >libvirt-0.10.2/src/remote/remote_driver.c:3733: switch_end: Reached end of switch >libvirt-0.10.2/src/remote/remote_driver.c:3735: cond_true: Condition "conn->uri", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3735: cond_true: Condition "conn->uri->server", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3735: cond_false: Condition "virAuthConfigLookup(state->config, "libvirt", ((conn->uri && conn->uri->server) ? conn->uri->server : "localhost"), credname, &value) < 0", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:3742: cond_false: Condition "value", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:3745: if_end: End of if statement >libvirt-0.10.2/src/remote/remote_driver.c:3746: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/remote/remote_driver.c:3714: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/remote/remote_driver.c:3714: cond_true: Condition "(state->interact + ninteract).id != 0", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3717: switch: Switch case value "16385UL" >libvirt-0.10.2/src/remote/remote_driver.c:3718: switch_case: Reached case "16385UL" >libvirt-0.10.2/src/remote/remote_driver.c:3720: break: Breaking from switch >libvirt-0.10.2/src/remote/remote_driver.c:3733: switch_end: Reached end of switch >libvirt-0.10.2/src/remote/remote_driver.c:3735: cond_true: Condition "conn->uri", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3735: cond_true: Condition "conn->uri->server", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3735: cond_false: Condition "virAuthConfigLookup(state->config, "libvirt", ((conn->uri && conn->uri->server) ? conn->uri->server : "localhost"), credname, &value) < 0", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:3742: cond_false: Condition "value", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:3745: if_end: End of if statement >libvirt-0.10.2/src/remote/remote_driver.c:3746: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/remote/remote_driver.c:3714: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/remote/remote_driver.c:3714: cond_true: Condition "(state->interact + ninteract).id != 0", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3717: switch: Switch case default >libvirt-0.10.2/src/remote/remote_driver.c:3730: switch_default: Reached default >libvirt-0.10.2/src/remote/remote_driver.c:3731: assign_zero: Assigning: "credname" = "NULL". >libvirt-0.10.2/src/remote/remote_driver.c:3732: break: Breaking from switch >libvirt-0.10.2/src/remote/remote_driver.c:3733: switch_end: Reached end of switch >libvirt-0.10.2/src/remote/remote_driver.c:3735: cond_true: Condition "conn->uri", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3735: cond_true: Condition "conn->uri->server", taking true branch >libvirt-0.10.2/src/remote/remote_driver.c:3735: var_deref_model: Passing null pointer "credname" to function "virAuthConfigLookup(virAuthConfigPtr, char const *, char const *, char const *, char const **)", which dereferences it. >libvirt-0.10.2/src/util/virauthconfig.c:124:5: cond_true: Condition "hostname", taking true branch >libvirt-0.10.2/src/util/virauthconfig.c:126:5: cond_false: Condition "!hostname", taking false branch >libvirt-0.10.2/src/util/virauthconfig.c:129:5: cond_false: Condition "virAsprintf(&authgroup, "auth-%s-%s", service, hostname) < 0", taking false branch >libvirt-0.10.2/src/util/virauthconfig.c:132:5: if_end: End of if statement >libvirt-0.10.2/src/util/virauthconfig.c:134:5: cond_false: Condition "!virKeyFileHasGroup(auth->keyfile, authgroup)", taking false branch >libvirt-0.10.2/src/util/virauthconfig.c:137:5: if_end: End of if statement >libvirt-0.10.2/src/util/virauthconfig.c:139:5: cond_false: Condition "!(authcred = virKeyFileGetValueString(auth->keyfile, authgroup, "credentials"))", taking false branch >libvirt-0.10.2/src/util/virauthconfig.c:144:5: if_end: End of if statement >libvirt-0.10.2/src/util/virauthconfig.c:146:5: cond_false: Condition "virAsprintf(&credgroup, "credentials-%s", authcred) < 0", taking false branch >libvirt-0.10.2/src/util/virauthconfig.c:149:5: if_end: End of if statement >libvirt-0.10.2/src/util/virauthconfig.c:151:5: cond_false: Condition "!virKeyFileHasGroup(auth->keyfile, credgroup)", taking false branch >libvirt-0.10.2/src/util/virauthconfig.c:156:5: if_end: End of if statement >libvirt-0.10.2/src/util/virauthconfig.c:158:5: deref_parm_in_call: Function "virKeyFileHasValue(virKeyFilePtr, char const *, char const *)" dereferences "credname". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/network/bridge_driver.c:3449: cond_true: Condition "iface->vlan.nTags > 0", taking true branch >libvirt-0.10.2/src/network/bridge_driver.c:3452: cond_false: Condition "iface->type != VIR_DOMAIN_NET_TYPE_NETWORK", taking false branch >libvirt-0.10.2/src/network/bridge_driver.c:3461: cond_false: Condition "!network", taking false branch >libvirt-0.10.2/src/network/bridge_driver.c:3466: if_end: End of if statement >libvirt-0.10.2/src/network/bridge_driver.c:3479: cond_true: Condition "portgroup", taking true branch >libvirt-0.10.2/src/network/bridge_driver.c:3479: cond_true: Condition "!iface->bandwidth", taking true branch >libvirt-0.10.2/src/network/bridge_driver.c:3480: cond_true: Condition "!iface->data.network.actual", taking true branch >libvirt-0.10.2/src/network/bridge_driver.c:3480: cond_false: Condition "virAlloc(&iface->data.network.actual, 104UL /* sizeof (*iface->data.network.actual) */) < 0", taking false branch >libvirt-0.10.2/src/network/bridge_driver.c:3484: if_end: End of if statement >libvirt-0.10.2/src/network/bridge_driver.c:3486: cond_false: Condition "virNetDevBandwidthCopy(&iface->data.network.actual->bandwidth, portgroup->bandwidth) < 0", taking false branch >libvirt-0.10.2/src/network/bridge_driver.c:3491: cond_true: Condition "netdef->forwardType == VIR_NETWORK_FORWARD_NONE", taking true branch >libvirt-0.10.2/src/network/bridge_driver.c:3498: cond_false: Condition "iface->data.network.actual", taking false branch >libvirt-0.10.2/src/network/bridge_driver.c:3498: var_compare_op: Comparing "iface->data.network.actual" to null implies that "iface->data.network.actual" might be null. >libvirt-0.10.2/src/network/bridge_driver.c:3500: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/network/bridge_driver.c:3720: cond_false: Condition "virNetDevVPortProfileCheckComplete(virtport, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/network/bridge_driver.c:3724: cond_true: Condition "iface->vlan.nTags > 0", taking true branch >libvirt-0.10.2/src/network/bridge_driver.c:3731: var_deref_model: Passing null pointer "&iface->data.network.actual->vlan" to function "virNetDevVlanCopy(virNetDevVlanPtr, virNetDevVlanPtr const)", which dereferences it. >libvirt-0.10.2/src/util/virnetdevvlan.c:82:5: cond_false: Condition "!src", taking false branch >libvirt-0.10.2/src/util/virnetdevvlan.c:82:5: cond_false: Condition "src->nTags == 0", taking false branch >libvirt-0.10.2/src/util/virnetdevvlan.c:85:5: deref_parm_field_in_call: Function "virAllocN(void *, size_t, size_t)" dereferences an offset off "dst". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/lxc/lxc_container.c:1328: assign_zero: Assigning: "*root" = "NULL". >libvirt-0.10.2/src/lxc/lxc_container.c:1332: cond_false: Condition "!(procmnt = setmntent("/proc/mounts", "r"))", taking false branch >libvirt-0.10.2/src/lxc/lxc_container.c:1336: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_container.c:1338: cond_true: Condition "getmntent_r(procmnt, &mntent, mntbuf, 1024 /* sizeof (mntbuf) */) != NULL", taking true branch >libvirt-0.10.2/src/lxc/lxc_container.c:1340: cond_true: Condition "__coverity_strcmp(mntent.mnt_type, "cgroup") != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_container.c:1341: continue: Continuing loop >libvirt-0.10.2/src/lxc/lxc_container.c:1372: loop: Looping back >libvirt-0.10.2/src/lxc/lxc_container.c:1338: cond_false: Condition "getmntent_r(procmnt, &mntent, mntbuf, 1024 /* sizeof (mntbuf) */) != NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_container.c:1372: loop_end: Reached end of loop >libvirt-0.10.2/src/lxc/lxc_container.c:1375: var_deref_model: Passing null pointer "*root" to function "opendir(char const *)", which dereferences it. > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/qemu/qemu_capabilities.c:621: cond_true: Condition "binary", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:622: cond_true: Condition "!(qemubinCaps = qemuCapsCacheLookup(cache, binary))", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:622: var_compare_op: Comparing "qemubinCaps" to null implies that "qemubinCaps" might be null. >libvirt-0.10.2/src/qemu/qemu_capabilities.c:624: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:634: cond_true: Condition "qemuCapsIsValidForKVM(hostarch, guestarch)", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:639: cond_true: Condition "i < 3UL /* sizeof (kvmbins) / sizeof (*kvmbins) */", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:642: cond_true: Condition "!kvmbin", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:643: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_capabilities.c:658: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_capabilities.c:639: cond_true: Condition "i < 3UL /* sizeof (kvmbins) / sizeof (*kvmbins) */", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:642: cond_true: Condition "!kvmbin", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:643: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_capabilities.c:658: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_capabilities.c:639: cond_true: Condition "i < 3UL /* sizeof (kvmbins) / sizeof (*kvmbins) */", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:642: cond_false: Condition "!kvmbin", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:645: cond_true: Condition "!(kvmbinCaps = qemuCapsCacheLookup(cache, kvmbin))", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:647: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:648: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_capabilities.c:658: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_capabilities.c:639: cond_false: Condition "i < 3UL /* sizeof (kvmbins) / sizeof (*kvmbins) */", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:658: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_capabilities.c:661: cond_false: Condition "!binary", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:664: cond_true: Condition "access("/dev/kvm", 0) == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:664: cond_false: Condition "qemuCapsGet(qemubinCaps, QEMU_CAPS_KVM)", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:664: cond_false: Condition "qemuCapsGet(qemubinCaps, QEMU_CAPS_ENABLE_KVM)", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:664: cond_true: Condition "kvmbin", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:670: cond_true: Condition "access("/dev/kqemu", 0) == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:670: cond_false: Condition "qemuCapsGet(qemubinCaps, QEMU_CAPS_KQEMU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:674: var_deref_model: Passing null pointer "qemubinCaps" to function "qemuCapsGetMachineTypesCaps(qemuCapsPtr, size_t *, virCapsGuestMachinePtr **)", which dereferences it. >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1816:5: deref_parm: Directly dereferencing parameter "caps". > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1779: cond_false: Condition "printf_parse(format, &d, &a) < 0", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1789: cond_false: Condition "printf_fetchargs(args, &a) < 0", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1794: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1813: cond_true: Condition "buf_neededlength < 4000UL /* 4000 / sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1817: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1828: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1830: cond_false: Condition "resultbuf != NULL", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1836: else_branch: Reached else branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL". >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1870: cond_true: Condition "true", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1872: cond_true: Condition "cp != dp->dir_start", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1877: cond_false: Condition "augmented_length > allocated", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1877: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1881: cond_true: Condition "1 /* sizeof (char) == sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1885: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1891: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1893: cond_false: Condition "i == d.count", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1897: cond_true: Condition "dp->conversion == '%'", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1901: cond_false: Condition "!(dp->arg_index == 18446744073709551615UL /* ~((size_t)0) */)", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1904: cond_false: Condition "augmented_length > allocated", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1904: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1905: var_deref_op: Dereferencing null pointer "result". > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1779: cond_false: Condition "printf_parse(format, &d, &a) < 0", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1789: cond_false: Condition "printf_fetchargs(args, &a) < 0", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1794: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1813: cond_true: Condition "buf_neededlength < 4000UL /* 4000 / sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1817: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1828: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1830: cond_false: Condition "resultbuf != NULL", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1836: else_branch: Reached else branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL". >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1870: cond_true: Condition "true", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1872: cond_true: Condition "cp != dp->dir_start", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1877: cond_false: Condition "augmented_length > allocated", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1877: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1881: cond_true: Condition "1 /* sizeof (char) == sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1885: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1891: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1893: cond_false: Condition "i == d.count", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1897: cond_false: Condition "dp->conversion == '%'", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1909: else_branch: Reached else branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1910: cond_false: Condition "!(dp->arg_index != 18446744073709551615UL /* ~((size_t)0) */)", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1913: cond_false: Condition "dp->conversion == 'n'", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4605: else_branch: Reached else branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4775: cond_true: Condition "flags & 1", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4778: cond_true: Condition "flags & 2", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4780: cond_true: Condition "flags & 4", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4782: cond_true: Condition "flags & 8", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4784: cond_true: Condition "flags & 0x10", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4787: cond_true: Condition "flags & 0x40", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4790: cond_true: Condition "1 /* !0 */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4792: cond_true: Condition "flags & 0x20", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4794: cond_true: Condition "dp->width_start != dp->width_end", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4799: cond_true: Condition "1 /* sizeof (char) == sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4803: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4810: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4813: cond_true: Condition "1 /* !0 */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4815: cond_true: Condition "dp->precision_start != dp->precision_end", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4820: cond_true: Condition "1 /* sizeof (char) == sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4824: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4831: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4835: switch: Switch case value "TYPE_LONGLONGINT" >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4838: switch_case: Reached case "TYPE_LONGLONGINT" >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4859: break: Breaking from switch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4865: switch_end: Reached end of switch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4910: cond_true: Condition "1 /* !0 */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4910: cond_true: Condition "dp->width_arg_index != 18446744073709551615UL /* ~((size_t)0) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4912: cond_false: Condition "!((a.arg + dp->width_arg_index).type == TYPE_INT)", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4916: cond_true: Condition "1 /* !0 */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4916: cond_true: Condition "dp->precision_arg_index != 18446744073709551615UL /* ~((size_t)0) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4918: cond_false: Condition "!((a.arg + dp->precision_arg_index).type == TYPE_INT)", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4932: cond_false: Condition "xsum(length, 2UL /* (2 + sizeof (char) / sizeof (char) - 1) / (sizeof (char) / sizeof (char)) */) > allocated", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4932: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:4937: var_deref_op: Dereferencing null pointer "result". > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1779: cond_false: Condition "printf_parse(format, &d, &a) < 0", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1789: cond_false: Condition "printf_fetchargs(args, &a) < 0", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1794: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1813: cond_true: Condition "buf_neededlength < 4000UL /* 4000 / sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1817: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1828: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1830: cond_false: Condition "resultbuf != NULL", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1836: else_branch: Reached else branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL". >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1870: cond_true: Condition "true", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1872: cond_true: Condition "cp != dp->dir_start", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1877: cond_false: Condition "augmented_length > allocated", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1877: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1881: cond_true: Condition "1 /* sizeof (char) == sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1885: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1891: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1893: cond_true: Condition "i == d.count", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1894: break: Breaking from loop >libvirt-0.10.2/gnulib/lib/vasnprintf.c:5544: loop_end: Reached end of loop >libvirt-0.10.2/gnulib/lib/vasnprintf.c:5547: cond_false: Condition "xsum(length, 1) > allocated", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:5547: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:5548: var_deref_op: Dereferencing null pointer "result". > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1779: cond_false: Condition "printf_parse(format, &d, &a) < 0", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1789: cond_false: Condition "printf_fetchargs(args, &a) < 0", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1794: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1813: cond_true: Condition "buf_neededlength < 4000UL /* 4000 / sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1817: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1828: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1830: cond_false: Condition "resultbuf != NULL", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1836: else_branch: Reached else branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1837: assign_zero: Assigning: "result" = "NULL". >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1870: cond_true: Condition "true", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1872: cond_true: Condition "cp != dp->dir_start", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1877: cond_false: Condition "augmented_length > allocated", taking false branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1877: if_end: End of if statement >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1881: cond_true: Condition "1 /* sizeof (char) == sizeof (char) */", taking true branch >libvirt-0.10.2/gnulib/lib/vasnprintf.c:1883: var_deref_model: Passing null pointer "result + length" to function "memcpy(void * restrict, void const * restrict, size_t)", which dereferences it. > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/qemu/qemu_driver.c:6846: assign_zero: Assigning: "result" = "NULL". >libvirt-0.10.2/src/qemu/qemu_driver.c:6851: cond_false: Condition "__coverity_strcmp(deviceWeightStr, "") == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6855: cond_true: Condition "temp", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6857: cond_false: Condition "temp", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6860: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:6861: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_driver.c:6855: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:6855: cond_false: Condition "temp", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6861: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:6865: cond_true: Condition "!(nsep & 1)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6866: goto: Jumping to label "error" >libvirt-0.10.2/src/qemu/qemu_driver.c:6914: label: Reached label "error" >libvirt-0.10.2/src/qemu/qemu_driver.c:6918: var_deref_model: Passing null pointer "result" to function "virBlkioDeviceWeightArrayClear(virBlkioDeviceWeightPtr, int)", which dereferences it. >libvirt-0.10.2/src/conf/domain_conf.c:697:5: cond_true: Condition "i < ndevices", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:698:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:698:9: deref_parm_field_in_call: Function "virFree(void *)" dereferences an offset off "deviceWeights". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) > >Error: FORWARD_NULL (CWE-476): >libvirt-0.10.2/src/security/security_selinux.c:1973: cond_false: Condition "secdef = virDomainDefGetSecurityLabelDef(def, "selinux")", taking false branch >libvirt-0.10.2/src/security/security_selinux.c:1984: if_end: End of if statement >libvirt-0.10.2/src/security/security_selinux.c:1973: var_compare_op: Comparing "secdef" to null implies that "secdef" might be null. >libvirt-0.10.2/src/security/security_selinux.c:1986: cond_true: Condition "!opts", taking true branch >libvirt-0.10.2/src/security/security_selinux.c:1986: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/security/security_selinux.c:1986: cond_true: Condition "(size_t)(void const *)&""[1] - (size_t)(void const *)"" == 1", taking true branch >libvirt-0.10.2/src/security/security_selinux.c:1986: cond_true: Condition "(char const *)""[0] == 0", taking true branch >libvirt-0.10.2/src/security/security_selinux.c:1986: cond_false: Condition "!(opts = ((1 && (size_t)(void const *)&""[1] - (size_t)(void const *)"" == 1) ? ((char const *)""[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup("")))", taking false branch >libvirt-0.10.2/src/security/security_selinux.c:1990: if_end: End of if statement >libvirt-0.10.2/src/security/security_selinux.c:1992: var_deref_op: Dereferencing null pointer "secdef". > >Error: MISSING_RETURN: >/tmp/tmpdzba15.c:1: missing_return: Arriving at the end of a function without returning a value. > >Error: MISSING_RETURN: >/tmp/tmpj1yZcL.c:1: missing_return: Arriving at the end of a function without returning a value. > >Error: NEGATIVE_RETURNS (CWE-394): >libvirt-0.10.2/src/util/buf.c:153: cond_false: Condition "!str", taking false branch >libvirt-0.10.2/src/util/buf.c:153: cond_false: Condition "!buf", taking false branch >libvirt-0.10.2/src/util/buf.c:153: cond_true: Condition "len == 0", taking true branch >libvirt-0.10.2/src/util/buf.c:153: cond_false: Condition "buf->indent == 0", taking false branch >libvirt-0.10.2/src/util/buf.c:156: cond_false: Condition "buf->error", taking false branch >libvirt-0.10.2/src/util/buf.c:159: negative_return_fn: Function "virBufferGetIndent(buf, true)" returns a negative number. >libvirt-0.10.2/src/util/buf.c:100:5: cond_true: Condition "!buf", taking true branch >libvirt-0.10.2/src/util/buf.c:101:9: return_negative_constant: Explicitly returning negative value "-1". >libvirt-0.10.2/src/util/buf.c:159: var_assign: Assigning: signed variable "indent" = "virBufferGetIndent(virBufferPtr const, bool)". >libvirt-0.10.2/src/util/buf.c:161: cond_false: Condition "len < 0", taking false branch >libvirt-0.10.2/src/util/buf.c:165: cond_true: Condition "needSize > buf->size", taking true branch >libvirt-0.10.2/src/util/buf.c:165: cond_false: Condition "virBufferGrow(buf, needSize - buf->use) < 0", taking false branch >libvirt-0.10.2/src/util/buf.c:169: negative_returns: "indent" is passed to a parameter that cannot be negative. > >Error: NULL_RETURNS (CWE-476): >libvirt-0.10.2/src/qemu/qemu_hostdev.c:413: cond_false: Condition "!(pcidevs = qemuGetPciHostDeviceList(hostdevs, nhostdevs))", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:428: cond_true: Condition "i < pciDeviceListCount(pcidevs)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:432: cond_true: Condition "!driver->relaxedACS", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:432: cond_false: Condition "!pciDeviceIsAssignable(dev, !driver->relaxedACS)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:437: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hostdev.c:441: cond_false: Condition "other = pciDeviceListFind(driver->activePciHostdevs, dev)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:453: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hostdev.c:454: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:428: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:428: cond_true: Condition "i < pciDeviceListCount(pcidevs)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:432: cond_true: Condition "!driver->relaxedACS", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:432: cond_false: Condition "!pciDeviceIsAssignable(dev, !driver->relaxedACS)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:437: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hostdev.c:441: cond_false: Condition "other = pciDeviceListFind(driver->activePciHostdevs, dev)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:453: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hostdev.c:454: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:428: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:428: cond_false: Condition "i < pciDeviceListCount(pcidevs)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:454: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:457: cond_true: Condition "i < pciDeviceListCount(pcidevs)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:459: cond_true: Condition "pciDeviceGetManaged(dev)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:459: cond_false: Condition "pciDettachDevice(dev, driver->activePciHostdevs, NULL) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:462: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:457: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:457: cond_true: Condition "i < pciDeviceListCount(pcidevs)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:459: cond_false: Condition "pciDeviceGetManaged(dev)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:462: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:457: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:457: cond_false: Condition "i < pciDeviceListCount(pcidevs)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:462: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:466: cond_true: Condition "i < pciDeviceListCount(pcidevs)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:468: cond_false: Condition "pciResetDevice(dev, driver->activePciHostdevs, driver->inactivePciHostdevs) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:471: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:466: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:466: cond_false: Condition "i < pciDeviceListCount(pcidevs)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:471: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:475: cond_true: Condition "i < nhostdevs", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:477: cond_true: Condition "hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:478: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:475: cond_true: Condition "i < nhostdevs", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:477: cond_true: Condition "hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:478: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:475: cond_true: Condition "i < nhostdevs", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:477: cond_false: Condition "hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:479: cond_true: Condition "hostdev->source.subsys.type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:480: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:475: cond_true: Condition "i < nhostdevs", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:477: cond_false: Condition "hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:479: cond_false: Condition "hostdev->source.subsys.type != VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:481: cond_true: Condition "hostdev->parent.type == VIR_DOMAIN_DEVICE_NET", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:481: cond_true: Condition "hostdev->parent.data.net", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:483: cond_false: Condition "qemuDomainHostdevNetConfigReplace(hostdev, uuid, driver->stateDir) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:486: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hostdev.c:475: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:475: cond_false: Condition "i < nhostdevs", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:492: cond_true: Condition "i < pciDeviceListCount(pcidevs)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:494: cond_false: Condition "pciDeviceListAdd(driver->activePciHostdevs, dev) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:496: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:492: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:492: cond_false: Condition "i < pciDeviceListCount(pcidevs)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:496: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:499: cond_true: Condition "i < pciDeviceListCount(pcidevs)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:502: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:499: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:499: cond_false: Condition "i < pciDeviceListCount(pcidevs)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:502: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_hostdev.c:507: cond_true: Condition "i < pciDeviceListCount(pcidevs)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hostdev.c:511: returned_null: Function "pciDeviceListFind(pciDeviceList *, pciDevice *)" returns null (checked 12 out of 13 times). >libvirt-0.10.2/src/util/pci.c:1651:5: cond_false: Condition "(i = pciDeviceListFindIndex(list, dev)) >= 0", taking false branch >libvirt-0.10.2/src/util/pci.c:1654:9: return_null: Explicitly returning null. >libvirt-0.10.2/src/qemu/qemu_driver.c:10166: example_checked: "pciDeviceListFind(driver->inactivePciHostdevs, pci)" has its value checked in "pciDeviceListFind(driver->inactivePciHostdevs, pci)". >libvirt-0.10.2/src/qemu/qemu_driver.c:10196: example_assign: Assigning: "other" = return value from "pciDeviceListFind(driver->activePciHostdevs, pci)". >libvirt-0.10.2/src/qemu/qemu_driver.c:10197: example_checked: "other" has its value checked in "other". >libvirt-0.10.2/src/qemu/qemu_hostdev.c:441: example_checked: "pciDeviceListFind(driver->activePciHostdevs, dev)" has its value checked in "other = pciDeviceListFind(driver->activePciHostdevs, dev)". >libvirt-0.10.2/src/qemu/qemu_hostdev.c:536: example_checked: "pciDeviceListFind(pcidevs, dev)" has its value checked in "pcidev = pciDeviceListFind(pcidevs, dev)". >libvirt-0.10.2/src/util/pci.c:1558: example_checked: "pciDeviceListFind(list, dev)" has its value checked in "pciDeviceListFind(list, dev)". >libvirt-0.10.2/src/qemu/qemu_hostdev.c:511: var_assigned: Assigning: "activeDev" = null return value from "pciDeviceListFind(pciDeviceList *, pciDevice *)". >libvirt-0.10.2/src/qemu/qemu_hostdev.c:513: dereference: Dereferencing a pointer that might be null "activeDev" when calling "pciDeviceSetUsedBy(pciDevice *, char const *)". >libvirt-0.10.2/src/util/pci.c:1506:5: deref_parm: Directly dereferencing parameter "dev". > >Error: NULL_RETURNS (CWE-476): >libvirt-0.10.2/src/lxc/lxc_container.c:1332: cond_false: Condition "!(procmnt = setmntent("/proc/mounts", "r"))", taking false branch >libvirt-0.10.2/src/lxc/lxc_container.c:1336: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_container.c:1338: cond_true: Condition "getmntent_r(procmnt, &mntent, mntbuf, 1024 /* sizeof (mntbuf) */) != NULL", taking true branch >libvirt-0.10.2/src/lxc/lxc_container.c:1340: cond_false: Condition "__coverity_strcmp(mntent.mnt_type, "cgroup") != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_container.c:1343: cond_true: Condition "!*root", taking true branch >libvirt-0.10.2/src/lxc/lxc_container.c:1345: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/lxc/lxc_container.c:1345: cond_false: Condition "!(*root = ((0 && (size_t)(void const *)(mntent.mnt_dir + 1) - (size_t)(void const *)mntent.mnt_dir == 1) ? ((char const *)mntent.mnt_dir[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(mntent.mnt_dir)))", taking false branch >libvirt-0.10.2/src/lxc/lxc_container.c:1348: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_container.c:1349: returned_null: Function "strrchr(char const *, int)" returns null (checked 11 out of 13 times). >libvirt-0.10.2/daemon/libvirtd.c:880: example_assign: Assigning: "tmp" = return value from "strrchr(argv[0], 47)". >libvirt-0.10.2/daemon/libvirtd.c:881: example_checked: "tmp" has its value checked in "tmp". >libvirt-0.10.2/src/esx/esx_storage_driver.c:1008: example_assign: Assigning: "tmp" = return value from "strrchr(def->name, 47)". >libvirt-0.10.2/src/esx/esx_storage_driver.c:1010: example_checked: "tmp" has its value checked in "tmp == NULL". >libvirt-0.10.2/src/esx/esx_util.c:299: example_assign: Assigning: "tmp" = return value from "strrchr(preliminaryDirectoryAndFileName, 47)". >libvirt-0.10.2/src/esx/esx_util.c:301: example_checked: "tmp" has its value checked in "tmp != NULL". >libvirt-0.10.2/src/node_device/node_device_udev.c:429: example_assign: Assigning: "p" = return value from "strrchr(syspath, 47)". >libvirt-0.10.2/src/node_device/node_device_udev.c:431: example_checked: "p" has its value checked in "p == NULL". >libvirt-0.10.2/src/storage/storage_backend_disk.c:67: example_assign: Assigning: "tmp" = return value from "strrchr(groups[0], 47)". >libvirt-0.10.2/src/storage/storage_backend_disk.c:68: example_checked: "tmp" has its value checked in "tmp". >libvirt-0.10.2/src/lxc/lxc_container.c:1349: var_assigned: Assigning: "tmp" = null return value from "strrchr(char const *, int)". >libvirt-0.10.2/src/lxc/lxc_container.c:1350: dereference: Dereferencing a null pointer "tmp". > >Error: NULL_RETURNS (CWE-476): >libvirt-0.10.2/src/nodeinfo.c:1002: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/nodeinfo.c:1005: returned_null: Function "__coverity_strchr(char const *, int)" returns null (checked 154 out of 160 times). >libvirt-0.10.2/daemon/libvirtd-config.c:303: example_checked: "__coverity_strchr(localhost, 46)" has its value checked in "tmp = __coverity_strchr(localhost, 46)". >libvirt-0.10.2/src/conf/domain_conf.c:7434: example_checked: "__coverity_strchr(version_copy, 46)" has its value checked in "temp = __coverity_strchr(version_copy, 46)". >libvirt-0.10.2/src/conf/network_conf.c:967: example_checked: "__coverity_strchr(name, 32)" has its value checked in "__coverity_strchr(name, 32) != NULL". >libvirt-0.10.2/src/conf/nwfilter_conf.c:929: example_assign: Assigning: "sep" = return value from "__coverity_strchr(val->c, 47)". >libvirt-0.10.2/src/conf/nwfilter_conf.c:933: example_checked: "sep" has its value checked in "sep". >libvirt-0.10.2/src/conf/snapshot_conf.c:530: example_checked: "__coverity_strchr(tmp, 47)" has its value checked in "__coverity_strchr(tmp, 47)". >libvirt-0.10.2/src/nodeinfo.c:1005: var_assigned: Assigning: "field" = null return value from "__coverity_strchr(char const *, int)". >libvirt-0.10.2/src/nodeinfo.c:1006: dereference: Incrementing a pointer which might be null: "field". > >Error: NULL_RETURNS (CWE-476): >libvirt-0.10.2/src/nodeinfo.c:968: returned_null: Function "__coverity_strchr(char const *, int)" returns null (checked 154 out of 160 times). >libvirt-0.10.2/daemon/libvirtd-config.c:303: example_checked: "__coverity_strchr(localhost, 46)" has its value checked in "tmp = __coverity_strchr(localhost, 46)". >libvirt-0.10.2/src/conf/domain_conf.c:7434: example_checked: "__coverity_strchr(version_copy, 46)" has its value checked in "temp = __coverity_strchr(version_copy, 46)". >libvirt-0.10.2/src/conf/network_conf.c:967: example_checked: "__coverity_strchr(name, 32)" has its value checked in "__coverity_strchr(name, 32) != NULL". >libvirt-0.10.2/src/conf/nwfilter_conf.c:929: example_assign: Assigning: "sep" = return value from "__coverity_strchr(val->c, 47)". >libvirt-0.10.2/src/conf/nwfilter_conf.c:933: example_checked: "sep" has its value checked in "sep". >libvirt-0.10.2/src/conf/snapshot_conf.c:530: example_checked: "__coverity_strchr(tmp, 47)" has its value checked in "__coverity_strchr(tmp, 47)". >libvirt-0.10.2/src/nodeinfo.c:968: var_assigned: Assigning: "field" = null return value from "__coverity_strchr(char const *, int)". >libvirt-0.10.2/src/nodeinfo.c:969: dereference: Incrementing a pointer which might be null: "field". > >Error: OVERRUN: >libvirt-0.10.2/src/util/cgroup.c:817: cond_false: Condition "controller < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:817: cond_at_least: Checking "controller < 0" implies that the value of "controller" is at least 0 on the false branch. >libvirt-0.10.2/src/util/cgroup.c:817: cond_false: Condition "controller > VIR_CGROUP_CONTROLLER_LAST", taking false branch >libvirt-0.10.2/src/util/cgroup.c:817: cond_between: Checking "controller > 7" implies that the value of "controller" is between 0 and 7 (inclusive) on the false branch. >libvirt-0.10.2/src/util/cgroup.c:820: overrun-local: Overrunning array "group->controllers" of 7 24-byte elements at element index 7 (byte offset 168) using index "controller" (which evaluates to 7). > >Error: OVERRUN: >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:204: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->autoDiskLeasePath, "__LIBVIRT__DISKS__") < 0", taking false branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:209: if_end: End of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:211: overrun-buffer-arg: Overrunning array ""__LIBVIRT__DISKS__"" of 19 bytes by passing it to a function which accesses it at byte offset 47 using argument "48UL". > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/util/pci.c:2090: alloc_arg: "pciGetPciConfigAddressFromSysfsDeviceLink(char const *, struct pci_config_address **)" allocates memory that is stored into "vf_bdf". >libvirt-0.10.2/src/util/pci.c:1914:5: cond_false: Condition "!virFileExists(device_link)", taking false branch >libvirt-0.10.2/src/util/pci.c:1917:5: if_end: End of if statement >libvirt-0.10.2/src/util/pci.c:1920:5: cond_false: Condition "device_path == NULL", taking false branch >libvirt-0.10.2/src/util/pci.c:1927:5: if_end: End of if statement >libvirt-0.10.2/src/util/pci.c:1930:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*bdf". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/pci.c:1930:5: cond_false: Condition "virAlloc(bdf, 16UL /* sizeof (**bdf) */) != 0", taking false branch >libvirt-0.10.2/src/util/pci.c:1933:5: if_end: End of if statement >libvirt-0.10.2/src/util/pci.c:1935:5: noescape: Resource "*bdf" is not freed or pointed-to in function "pciParsePciConfigAddress(char *, struct pci_config_address *)". >libvirt-0.10.2/src/util/pci.c:1871:53: noescape: "pciParsePciConfigAddress(char *, struct pci_config_address *)" does not free or save its pointer parameter "bdf". >libvirt-0.10.2/src/util/pci.c:1935:5: cond_true: Condition "pciParsePciConfigAddress(config_address, *bdf) != 0", taking true branch >libvirt-0.10.2/src/util/pci.c:1939:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/pci.c:1940:9: goto: Jumping to label "out" >libvirt-0.10.2/src/util/pci.c:1951:1: label: Reached label "out" >libvirt-0.10.2/src/util/pci.c:1952:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/pci.c:2090: cond_true: Condition "pciGetPciConfigAddressFromSysfsDeviceLink(vf_sysfs_device_link, &vf_bdf) < 0", taking true branch >libvirt-0.10.2/src/util/pci.c:2092: leaked_storage: Variable "vf_bdf" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:6867: cond_false: Condition "virAlloc(&def, 96UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6870: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:6875: cond_false: Condition "(def->model = virDomainSoundModelTypeFromString(model)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6879: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:6881: cond_true: Condition "def->model == VIR_DOMAIN_SOUND_MODEL_ICH6", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6886: alloc_arg: "virXPathNodeSet(char const *, xmlXPathContextPtr, xmlNodePtr **)" allocates memory that is stored into "codecNodes". >libvirt-0.10.2/src/util/xml.c:572:5: cond_false: Condition "ctxt == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:572:5: cond_false: Condition "xpath == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:576:5: if_end: End of if statement >libvirt-0.10.2/src/util/xml.c:578:5: cond_true: Condition "list != NULL", taking true branch >libvirt-0.10.2/src/util/xml.c:584:5: cond_false: Condition "obj == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:587:5: cond_false: Condition "obj->type != XPATH_NODESET", taking false branch >libvirt-0.10.2/src/util/xml.c:592:5: if_end: End of if statement >libvirt-0.10.2/src/util/xml.c:594:5: cond_false: Condition "obj->nodesetval == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:594:5: cond_false: Condition "obj->nodesetval->nodeNr < 0", taking false branch >libvirt-0.10.2/src/util/xml.c:597:5: if_end: End of if statement >libvirt-0.10.2/src/util/xml.c:600:5: cond_true: Condition "list != NULL", taking true branch >libvirt-0.10.2/src/util/xml.c:600:5: cond_true: Condition "ret", taking true branch >libvirt-0.10.2/src/util/xml.c:601:9: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*list". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:601:9: cond_false: Condition "virAllocN(list, 8UL /* sizeof (**list) */, ret) < 0", taking false branch >libvirt-0.10.2/src/util/xml.c:604:16: else_branch: Reached else branch >libvirt-0.10.2/src/util/xml.c:605:13: noescape: Resource "*list" is not freed or pointed-to in function "memcpy(void * restrict, void const * restrict, size_t)". >libvirt-0.10.2/src/conf/domain_conf.c:6887: cond_false: Condition "ncodecs < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6890: cond_true: Condition "ncodecs > 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6893: cond_false: Condition "virAllocN(&def->codecs, 8UL /* sizeof (*def->codecs) */, ncodecs) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6897: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:6899: cond_true: Condition "ii < ncodecs", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6901: cond_false: Condition "codec == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6906: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:6899: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:6899: cond_true: Condition "ii < ncodecs", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6901: cond_false: Condition "codec == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6906: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:6899: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:6899: cond_true: Condition "ii < ncodecs", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6901: cond_true: Condition "codec == NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6902: goto: Jumping to label "error" >libvirt-0.10.2/src/conf/domain_conf.c:6902: leaked_storage: Variable "codecNodes" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:8598: cond_false: Condition "virAlloc(&def, 840UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8601: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8603: cond_true: Condition "!(flags & VIR_DOMAIN_XML_INACTIVE)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8604: cond_true: Condition "virXPathLong("string(./@id)", ctxt, &id) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8609: cond_false: Condition "!(tmp = virXPathString("string(./@type)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8613: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8615: cond_false: Condition "(def->virtType = virDomainVirtTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8619: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8620: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8622: cond_false: Condition "(expectedVirtTypes & (1 << def->virtType)) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8659: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8662: cond_false: Condition "!(def->name = virXPathString("string(./name[1])", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8665: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8671: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8678: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8679: cond_false: Condition "virUUIDParse(tmp, def->uuid) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8683: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8684: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_true: Condition "def->title", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_false: Condition "__coverity_strchr(def->title, 10)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8693: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8700: cond_false: Condition "virSecurityLabelDefsParseXML(def, ctxt, caps, flags) == -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8704: cond_false: Condition "virDomainParseMemory("./memory[1]", ctxt, &def->mem.max_balloon, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8708: cond_false: Condition "virDomainParseMemory("./currentMemory[1]", ctxt, &def->mem.cur_balloon, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8714: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8717: cond_false: Condition "def->mem.dump_core <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8720: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8721: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8724: cond_true: Condition "def->mem.cur_balloon > def->mem.max_balloon", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8728: cond_false: Condition "(def->mem.cur_balloon + 4096 - 1) / 4096 > (def->mem.max_balloon + 4096 - 1) / 4096", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8735: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8740: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8745: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8749: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8753: cond_false: Condition "virXPathUInt("string(./blkiotune/weight)", ctxt, &def->blkio.weight) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8757: cond_false: Condition "(n = virXPathNodeSet("./blkiotune/device", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8761: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_false: Condition "virAllocN(&def->blkio.devices, 16UL /* sizeof (*def->blkio.devices) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8772: cond_false: Condition "__coverity_strcmp((def->blkio.devices + j).path, (def->blkio.devices + i).path) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8778: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8784: cond_false: Condition "virDomainParseMemory("./memtune/hard_limit[1]", ctxt, &def->mem.hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8788: cond_false: Condition "virDomainParseMemory("./memtune/soft_limit[1]", ctxt, &def->mem.soft_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8792: cond_false: Condition "virDomainParseMemory("./memtune/min_guarantee[1]", ctxt, &def->mem.min_guarantee, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8796: cond_false: Condition "virDomainParseMemory("./memtune/swap_hard_limit[1]", ctxt, &def->mem.swap_hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8801: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8805: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8807: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8809: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8813: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8817: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8821: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8823: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8825: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8829: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8831: cond_false: Condition "def->maxvcpus < count", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8836: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8840: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8841: cond_false: Condition "(def->placement_mode = virDomainCpuPlacementModeTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8847: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8848: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8849: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8851: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8853: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8855: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8856: cond_false: Condition "virBitmapParse(tmp, 0, &def->cpumask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8861: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8862: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8867: cond_true: Condition "virXPathULong("string(./cputune/shares[1])", ctxt, &def->cputune.shares) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8871: cond_false: Condition "virXPathULongLong("string(./cputune/period[1])", ctxt, &def->cputune.period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8875: cond_false: Condition "virXPathLongLong("string(./cputune/quota[1])", ctxt, &def->cputune.quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8879: cond_false: Condition "virXPathULongLong("string(./cputune/emulator_period[1])", ctxt, &def->cputune.emulator_period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8883: cond_false: Condition "virXPathLongLong("string(./cputune/emulator_quota[1])", ctxt, &def->cputune.emulator_quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8887: cond_false: Condition "(n = virXPathNodeSet("./cputune/vcpupin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8889: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_false: Condition "virAllocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8894: cond_false: Condition "n > def->maxvcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8898: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_false: Condition "vcpupin->vcpuid >= def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8926: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8931: cond_true: Condition "def->cpumask", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8932: cond_false: Condition "!def->cputune.vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8937: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8938: cond_false: Condition "virReallocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, def->vcpus) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8941: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_false: Condition "i < def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8963: cond_false: Condition "(n = virXPathNodeSet("./cputune/emulatorpin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8967: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8973: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8974: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8975: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8980: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8985: cond_false: Condition "!def->cputune.emulatorpin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8987: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8989: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8991: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8994: cond_false: Condition "(n = virXPathNodeSet("./numatune", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8998: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9000: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9005: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9007: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_true: Condition "cur != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9010: cond_true: Condition "cur->type == XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9011: cond_true: Condition "xmlStrEqual(cur->name, (xmlChar *)"memory")", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9017: cond_true: Condition "mode", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9018: cond_false: Condition "(def->numatune.memory.mode = virDomainNumatuneMemModeTypeFromString(mode)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9026: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9027: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9028: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9030: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9033: cond_true: Condition "nodeset", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9034: cond_false: Condition "virBitmapParse(nodeset, 0, &def->numatune.memory.nodemask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9040: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9041: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9046: cond_true: Condition "placement", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9047: cond_false: Condition "(placement_mode = virDomainNumatuneMemPlacementModeTypeFromString(placement)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9054: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9055: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9056: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_true: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_STATIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_false: Condition "!def->numatune.memory.nodemask", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9075: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9078: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9084: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9089: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9094: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_false: Condition "cur != NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9098: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9106: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9107: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9110: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9112: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_false: Condition "tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9134: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9137: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9140: cond_true: Condition "def->features & (64 /* 1 << VIR_DOMAIN_FEATURE_HYPERV */)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9144: cond_false: Condition "(n = virXPathNodeSet("./features/hyperv/*", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9183: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9187: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_reboot", "string(./on_reboot[1])", &def->onReboot, VIR_DOMAIN_LIFECYCLE_RESTART, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9194: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_poweroff", "string(./on_poweroff[1])", &def->onPoweroff, VIR_DOMAIN_LIFECYCLE_DESTROY, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9201: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_crash", "string(./on_crash[1])", &def->onCrash, VIR_DOMAIN_LIFECYCLE_CRASH_DESTROY, virDomainLifecycleCrashTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9208: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_lockfailure", "string(./on_lockfailure[1])", &def->onLockFailure, VIR_DOMAIN_LOCK_FAILURE_DEFAULT, virDomainLockFailureTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9215: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-mem/@enabled)", &def->pm.s3) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9220: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-disk/@enabled)", &def->pm.s4) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9226: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9227: cond_false: Condition "(def->clock.offset = virDomainClockOffsetTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9231: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9232: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9233: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9235: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9236: switch: Switch case value "1" >libvirt-0.10.2/src/conf/domain_conf.c:9237: switch_case: Reached case "1" >libvirt-0.10.2/src/conf/domain_conf.c:9240: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9241: cond_true: Condition "__coverity_strcmp(tmp, "reset") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9243: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9260: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9261: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9262: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9264: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9265: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9292: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9294: cond_false: Condition "(n = virXPathNodeSet("./clock/timer", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9296: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_false: Condition "virAllocN(&def->clock.timers, 8UL /* sizeof (*def->clock.timers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9307: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9313: cond_false: Condition "!def->os.type", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9324: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "__coverity_strcmp(def->os.type, "linux") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "def->virtType == VIR_DOMAIN_VIRT_XEN", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9332: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "(size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "(char const *)"xen"[0] == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "__retval != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "!(def->os.type = ((1 && (size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1) ? ((char const *)"xen"[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup("xen")))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9335: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9338: cond_false: Condition "!virCapabilitiesSupportsGuestOSType(caps, def->os.type)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9342: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9345: cond_true: Condition "def->os.arch", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9346: cond_false: Condition "!virCapabilitiesSupportsGuestArch(caps, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9351: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9353: cond_false: Condition "!virCapabilitiesSupportsGuestOSTypeArch(caps, def->os.type, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9360: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9361: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9372: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9375: cond_false: Condition "!def->os.machine", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9385: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9396: cond_true: Condition "__coverity_strcmp(def->os.type, "exe") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9398: cond_false: Condition "!def->os.init", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9409: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9412: cond_false: Condition "(n = virXPathNodeSet("./os/initarg", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9414: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9416: cond_false: Condition "virAllocN(&def->os.initargv, 8UL /* sizeof (*def->os.initargv) */, n + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9429: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9432: cond_true: Condition "__coverity_strcmp(def->os.type, "xen") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9442: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9443: cond_false: Condition "virDomainDefParseBootXML(ctxt, def, &bootMapSize) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_true: Condition "bootMapSize", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_false: Condition "!(bootMap = virBitmapNew(bootMapSize))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9450: cond_false: Condition "!def->emulator", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9454: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9457: cond_false: Condition "(n = virXPathNodeSet("./devices/disk", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_false: Condition "virAllocN(&def->disks, 8UL /* sizeof (*def->disks) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9476: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9479: cond_false: Condition "(n = virXPathNodeSet("./devices/controller", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_false: Condition "virAllocN(&def->controllers, 8UL /* sizeof (*def->controllers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_true: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9493: cond_true: Condition "controller->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_other", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_none", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9499: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9501: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9509: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_false: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9510: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9486: alloc_fn: Storage is returned from allocation function "virDomainControllerDefParseXML(xmlNodePtr, unsigned int)". >libvirt-0.10.2/src/conf/domain_conf.c:4302:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "def". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4302:5: cond_false: Condition "virAlloc(&def, 96UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4305:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4308:5: cond_true: Condition "type", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4309:9: cond_false: Condition "(def->type = virDomainControllerTypeFromString(type)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4313:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4317:5: cond_false: Condition "idx", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4323:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4326:5: cond_true: Condition "model", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4327:9: noescape: Resource "def" is not freed or pointed-to in function "virDomainControllerModelTypeFromString(virDomainControllerDefPtr const, char const *)". >libvirt-0.10.2/src/conf/domain_conf.c:4279:72: noescape: "virDomainControllerModelTypeFromString(virDomainControllerDefPtr const, char const *)" does not free or save its pointer parameter "def". >libvirt-0.10.2/src/conf/domain_conf.c:4327:9: cond_false: Condition "(def->model = virDomainControllerModelTypeFromString(def, model)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4331:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4332:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4334:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4336:5: cond_false: Condition "virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4339:5: switch: Switch case value "4" >libvirt-0.10.2/src/conf/domain_conf.c:4340:10: switch_case: Reached case "4" >libvirt-0.10.2/src/conf/domain_conf.c:4342:9: cond_false: Condition "ports", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4351:16: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:4354:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4357:9: cond_false: Condition "vectors", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4366:16: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:4369:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4370:9: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:4397:5: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:4399:5: cond_false: Condition "def->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4406:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4409:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4410:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4411:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4413:5: return_alloc: Returning allocated memory "def". >libvirt-0.10.2/src/conf/domain_conf.c:9486: var_assign: Assigning: "controller" = storage returned from "virDomainControllerDefParseXML(nodes[i], flags)". >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_true: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9493: cond_true: Condition "controller->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_other", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_true: Condition "usb_none", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9498: goto: Jumping to label "error" >libvirt-0.10.2/src/conf/domain_conf.c:9498: leaked_storage: Variable "controller" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:8598: cond_false: Condition "virAlloc(&def, 840UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8601: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8603: cond_true: Condition "!(flags & VIR_DOMAIN_XML_INACTIVE)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8604: cond_true: Condition "virXPathLong("string(./@id)", ctxt, &id) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8609: cond_false: Condition "!(tmp = virXPathString("string(./@type)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8613: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8615: cond_false: Condition "(def->virtType = virDomainVirtTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8619: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8620: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8622: cond_false: Condition "(expectedVirtTypes & (1 << def->virtType)) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8659: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8662: cond_false: Condition "!(def->name = virXPathString("string(./name[1])", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8665: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8671: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8678: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8679: cond_false: Condition "virUUIDParse(tmp, def->uuid) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8683: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8684: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_true: Condition "def->title", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_false: Condition "__coverity_strchr(def->title, 10)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8693: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8700: cond_false: Condition "virSecurityLabelDefsParseXML(def, ctxt, caps, flags) == -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8704: cond_false: Condition "virDomainParseMemory("./memory[1]", ctxt, &def->mem.max_balloon, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8708: cond_false: Condition "virDomainParseMemory("./currentMemory[1]", ctxt, &def->mem.cur_balloon, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8714: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8717: cond_false: Condition "def->mem.dump_core <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8720: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8721: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8724: cond_true: Condition "def->mem.cur_balloon > def->mem.max_balloon", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8728: cond_false: Condition "(def->mem.cur_balloon + 4096 - 1) / 4096 > (def->mem.max_balloon + 4096 - 1) / 4096", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8735: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8740: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8745: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8749: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8753: cond_false: Condition "virXPathUInt("string(./blkiotune/weight)", ctxt, &def->blkio.weight) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8757: cond_false: Condition "(n = virXPathNodeSet("./blkiotune/device", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8761: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_false: Condition "virAllocN(&def->blkio.devices, 16UL /* sizeof (*def->blkio.devices) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8772: cond_false: Condition "__coverity_strcmp((def->blkio.devices + j).path, (def->blkio.devices + i).path) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8778: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8784: cond_false: Condition "virDomainParseMemory("./memtune/hard_limit[1]", ctxt, &def->mem.hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8788: cond_false: Condition "virDomainParseMemory("./memtune/soft_limit[1]", ctxt, &def->mem.soft_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8792: cond_false: Condition "virDomainParseMemory("./memtune/min_guarantee[1]", ctxt, &def->mem.min_guarantee, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8796: cond_false: Condition "virDomainParseMemory("./memtune/swap_hard_limit[1]", ctxt, &def->mem.swap_hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8801: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8805: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8807: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8809: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8813: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8817: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8821: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8823: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8825: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8829: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8831: cond_false: Condition "def->maxvcpus < count", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8836: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8840: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8841: cond_false: Condition "(def->placement_mode = virDomainCpuPlacementModeTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8847: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8848: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8849: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8851: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8853: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8855: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8856: cond_false: Condition "virBitmapParse(tmp, 0, &def->cpumask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8861: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8862: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8867: cond_true: Condition "virXPathULong("string(./cputune/shares[1])", ctxt, &def->cputune.shares) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8871: cond_false: Condition "virXPathULongLong("string(./cputune/period[1])", ctxt, &def->cputune.period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8875: cond_false: Condition "virXPathLongLong("string(./cputune/quota[1])", ctxt, &def->cputune.quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8879: cond_false: Condition "virXPathULongLong("string(./cputune/emulator_period[1])", ctxt, &def->cputune.emulator_period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8883: cond_false: Condition "virXPathLongLong("string(./cputune/emulator_quota[1])", ctxt, &def->cputune.emulator_quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8887: cond_false: Condition "(n = virXPathNodeSet("./cputune/vcpupin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8889: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_false: Condition "virAllocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8894: cond_false: Condition "n > def->maxvcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8898: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_false: Condition "vcpupin->vcpuid >= def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8926: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8931: cond_true: Condition "def->cpumask", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8932: cond_false: Condition "!def->cputune.vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8937: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8938: cond_false: Condition "virReallocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, def->vcpus) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8941: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_false: Condition "i < def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8963: cond_false: Condition "(n = virXPathNodeSet("./cputune/emulatorpin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8967: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8973: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8974: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8975: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8980: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8985: cond_false: Condition "!def->cputune.emulatorpin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8987: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8989: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8991: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8994: cond_false: Condition "(n = virXPathNodeSet("./numatune", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8998: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9000: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9005: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9007: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_true: Condition "cur != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9010: cond_true: Condition "cur->type == XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9011: cond_true: Condition "xmlStrEqual(cur->name, (xmlChar *)"memory")", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9017: cond_true: Condition "mode", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9018: cond_false: Condition "(def->numatune.memory.mode = virDomainNumatuneMemModeTypeFromString(mode)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9026: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9027: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9028: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9030: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9033: cond_true: Condition "nodeset", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9034: cond_false: Condition "virBitmapParse(nodeset, 0, &def->numatune.memory.nodemask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9040: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9041: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9046: cond_true: Condition "placement", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9047: cond_false: Condition "(placement_mode = virDomainNumatuneMemPlacementModeTypeFromString(placement)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9054: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9055: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9056: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_true: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_STATIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_false: Condition "!def->numatune.memory.nodemask", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9075: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9078: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9084: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9089: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9094: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_false: Condition "cur != NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9098: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9106: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9107: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9110: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9112: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_false: Condition "tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9134: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9137: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9140: cond_true: Condition "def->features & (64 /* 1 << VIR_DOMAIN_FEATURE_HYPERV */)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9144: cond_false: Condition "(n = virXPathNodeSet("./features/hyperv/*", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9183: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9187: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_reboot", "string(./on_reboot[1])", &def->onReboot, VIR_DOMAIN_LIFECYCLE_RESTART, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9194: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_poweroff", "string(./on_poweroff[1])", &def->onPoweroff, VIR_DOMAIN_LIFECYCLE_DESTROY, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9201: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_crash", "string(./on_crash[1])", &def->onCrash, VIR_DOMAIN_LIFECYCLE_CRASH_DESTROY, virDomainLifecycleCrashTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9208: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_lockfailure", "string(./on_lockfailure[1])", &def->onLockFailure, VIR_DOMAIN_LOCK_FAILURE_DEFAULT, virDomainLockFailureTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9215: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-mem/@enabled)", &def->pm.s3) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9220: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-disk/@enabled)", &def->pm.s4) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9226: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9227: cond_false: Condition "(def->clock.offset = virDomainClockOffsetTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9231: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9232: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9233: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9235: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9236: switch: Switch case value "1" >libvirt-0.10.2/src/conf/domain_conf.c:9237: switch_case: Reached case "1" >libvirt-0.10.2/src/conf/domain_conf.c:9240: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9241: cond_true: Condition "__coverity_strcmp(tmp, "reset") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9243: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9260: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9261: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9262: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9264: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9265: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9292: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9294: cond_false: Condition "(n = virXPathNodeSet("./clock/timer", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9296: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_false: Condition "virAllocN(&def->clock.timers, 8UL /* sizeof (*def->clock.timers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9307: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9313: cond_false: Condition "!def->os.type", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9324: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "__coverity_strcmp(def->os.type, "linux") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "def->virtType == VIR_DOMAIN_VIRT_XEN", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9332: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "(size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "(char const *)"xen"[0] == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "__retval != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "!(def->os.type = ((1 && (size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1) ? ((char const *)"xen"[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup("xen")))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9335: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9338: cond_false: Condition "!virCapabilitiesSupportsGuestOSType(caps, def->os.type)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9342: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9345: cond_true: Condition "def->os.arch", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9346: cond_false: Condition "!virCapabilitiesSupportsGuestArch(caps, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9351: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9353: cond_false: Condition "!virCapabilitiesSupportsGuestOSTypeArch(caps, def->os.type, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9360: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9361: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9372: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9375: cond_false: Condition "!def->os.machine", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9385: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9396: cond_true: Condition "__coverity_strcmp(def->os.type, "exe") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9398: cond_false: Condition "!def->os.init", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9409: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9412: cond_false: Condition "(n = virXPathNodeSet("./os/initarg", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9414: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9416: cond_false: Condition "virAllocN(&def->os.initargv, 8UL /* sizeof (*def->os.initargv) */, n + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9429: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9432: cond_true: Condition "__coverity_strcmp(def->os.type, "xen") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9442: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9443: cond_false: Condition "virDomainDefParseBootXML(ctxt, def, &bootMapSize) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_true: Condition "bootMapSize", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_false: Condition "!(bootMap = virBitmapNew(bootMapSize))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9450: cond_false: Condition "!def->emulator", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9454: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9457: cond_false: Condition "(n = virXPathNodeSet("./devices/disk", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_false: Condition "virAllocN(&def->disks, 8UL /* sizeof (*def->disks) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9476: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9479: cond_false: Condition "(n = virXPathNodeSet("./devices/controller", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_false: Condition "virAllocN(&def->controllers, 8UL /* sizeof (*def->controllers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_true: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9493: cond_true: Condition "controller->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_other", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_none", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9499: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9501: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9509: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_false: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9510: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9486: alloc_fn: Storage is returned from allocation function "virDomainControllerDefParseXML(xmlNodePtr, unsigned int)". >libvirt-0.10.2/src/conf/domain_conf.c:4302:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "def". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4302:5: cond_false: Condition "virAlloc(&def, 96UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4305:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4308:5: cond_true: Condition "type", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4309:9: cond_false: Condition "(def->type = virDomainControllerTypeFromString(type)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4313:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4317:5: cond_false: Condition "idx", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4323:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4326:5: cond_true: Condition "model", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4327:9: noescape: Resource "def" is not freed or pointed-to in function "virDomainControllerModelTypeFromString(virDomainControllerDefPtr const, char const *)". >libvirt-0.10.2/src/conf/domain_conf.c:4279:72: noescape: "virDomainControllerModelTypeFromString(virDomainControllerDefPtr const, char const *)" does not free or save its pointer parameter "def". >libvirt-0.10.2/src/conf/domain_conf.c:4327:9: cond_false: Condition "(def->model = virDomainControllerModelTypeFromString(def, model)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4331:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4332:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4334:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4336:5: cond_false: Condition "virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4339:5: switch: Switch case value "4" >libvirt-0.10.2/src/conf/domain_conf.c:4340:10: switch_case: Reached case "4" >libvirt-0.10.2/src/conf/domain_conf.c:4342:9: cond_false: Condition "ports", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4351:16: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:4354:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4357:9: cond_false: Condition "vectors", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4366:16: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:4369:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4370:9: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:4397:5: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:4399:5: cond_false: Condition "def->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:4406:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:4409:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4410:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4411:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:4413:5: return_alloc: Returning allocated memory "def". >libvirt-0.10.2/src/conf/domain_conf.c:9486: var_assign: Assigning: "controller" = storage returned from "virDomainControllerDefParseXML(nodes[i], flags)". >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_true: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9493: cond_false: Condition "controller->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9501: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:9502: cond_true: Condition "usb_none", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9506: goto: Jumping to label "error" >libvirt-0.10.2/src/conf/domain_conf.c:9506: leaked_storage: Variable "controller" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:8598: cond_false: Condition "virAlloc(&def, 840UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8601: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8603: cond_true: Condition "!(flags & VIR_DOMAIN_XML_INACTIVE)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8604: cond_true: Condition "virXPathLong("string(./@id)", ctxt, &id) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8609: cond_false: Condition "!(tmp = virXPathString("string(./@type)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8613: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8615: cond_false: Condition "(def->virtType = virDomainVirtTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8619: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8620: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8622: cond_false: Condition "(expectedVirtTypes & (1 << def->virtType)) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8659: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8662: cond_false: Condition "!(def->name = virXPathString("string(./name[1])", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8665: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8671: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8678: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8679: cond_false: Condition "virUUIDParse(tmp, def->uuid) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8683: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8684: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_true: Condition "def->title", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_false: Condition "__coverity_strchr(def->title, 10)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8693: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8700: cond_false: Condition "virSecurityLabelDefsParseXML(def, ctxt, caps, flags) == -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8704: cond_false: Condition "virDomainParseMemory("./memory[1]", ctxt, &def->mem.max_balloon, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8708: cond_false: Condition "virDomainParseMemory("./currentMemory[1]", ctxt, &def->mem.cur_balloon, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8714: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8717: cond_false: Condition "def->mem.dump_core <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8720: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8721: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8724: cond_true: Condition "def->mem.cur_balloon > def->mem.max_balloon", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8728: cond_false: Condition "(def->mem.cur_balloon + 4096 - 1) / 4096 > (def->mem.max_balloon + 4096 - 1) / 4096", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8735: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8740: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8745: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8749: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8753: cond_false: Condition "virXPathUInt("string(./blkiotune/weight)", ctxt, &def->blkio.weight) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8757: cond_false: Condition "(n = virXPathNodeSet("./blkiotune/device", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8761: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_false: Condition "virAllocN(&def->blkio.devices, 16UL /* sizeof (*def->blkio.devices) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8772: cond_false: Condition "__coverity_strcmp((def->blkio.devices + j).path, (def->blkio.devices + i).path) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8778: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8784: cond_false: Condition "virDomainParseMemory("./memtune/hard_limit[1]", ctxt, &def->mem.hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8788: cond_false: Condition "virDomainParseMemory("./memtune/soft_limit[1]", ctxt, &def->mem.soft_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8792: cond_false: Condition "virDomainParseMemory("./memtune/min_guarantee[1]", ctxt, &def->mem.min_guarantee, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8796: cond_false: Condition "virDomainParseMemory("./memtune/swap_hard_limit[1]", ctxt, &def->mem.swap_hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8801: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8805: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8807: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8809: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8813: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8817: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8821: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8823: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8825: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8829: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8831: cond_false: Condition "def->maxvcpus < count", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8836: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8840: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8841: cond_false: Condition "(def->placement_mode = virDomainCpuPlacementModeTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8847: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8848: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8849: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8851: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8853: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8855: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8856: cond_false: Condition "virBitmapParse(tmp, 0, &def->cpumask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8861: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8862: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8867: cond_true: Condition "virXPathULong("string(./cputune/shares[1])", ctxt, &def->cputune.shares) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8871: cond_false: Condition "virXPathULongLong("string(./cputune/period[1])", ctxt, &def->cputune.period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8875: cond_false: Condition "virXPathLongLong("string(./cputune/quota[1])", ctxt, &def->cputune.quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8879: cond_false: Condition "virXPathULongLong("string(./cputune/emulator_period[1])", ctxt, &def->cputune.emulator_period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8883: cond_false: Condition "virXPathLongLong("string(./cputune/emulator_quota[1])", ctxt, &def->cputune.emulator_quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8887: cond_false: Condition "(n = virXPathNodeSet("./cputune/vcpupin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8889: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_false: Condition "virAllocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8894: cond_false: Condition "n > def->maxvcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8898: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_false: Condition "vcpupin->vcpuid >= def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8926: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8931: cond_true: Condition "def->cpumask", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8932: cond_false: Condition "!def->cputune.vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8937: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8938: cond_false: Condition "virReallocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, def->vcpus) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8941: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_false: Condition "i < def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8963: cond_false: Condition "(n = virXPathNodeSet("./cputune/emulatorpin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8967: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8973: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8974: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8975: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8980: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8985: cond_false: Condition "!def->cputune.emulatorpin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8987: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8989: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8991: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8994: cond_false: Condition "(n = virXPathNodeSet("./numatune", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8998: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9000: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9005: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9007: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_true: Condition "cur != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9010: cond_true: Condition "cur->type == XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9011: cond_true: Condition "xmlStrEqual(cur->name, (xmlChar *)"memory")", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9017: cond_true: Condition "mode", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9018: cond_false: Condition "(def->numatune.memory.mode = virDomainNumatuneMemModeTypeFromString(mode)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9026: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9027: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9028: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9030: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9033: cond_true: Condition "nodeset", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9034: cond_false: Condition "virBitmapParse(nodeset, 0, &def->numatune.memory.nodemask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9040: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9041: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9046: cond_true: Condition "placement", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9047: cond_false: Condition "(placement_mode = virDomainNumatuneMemPlacementModeTypeFromString(placement)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9054: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9055: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9056: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_true: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_STATIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_false: Condition "!def->numatune.memory.nodemask", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9075: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9078: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9084: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9089: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9094: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_false: Condition "cur != NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9098: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9106: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9107: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9110: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9112: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_false: Condition "tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9134: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9137: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9140: cond_true: Condition "def->features & (64 /* 1 << VIR_DOMAIN_FEATURE_HYPERV */)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9144: cond_false: Condition "(n = virXPathNodeSet("./features/hyperv/*", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9183: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9187: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_reboot", "string(./on_reboot[1])", &def->onReboot, VIR_DOMAIN_LIFECYCLE_RESTART, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9194: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_poweroff", "string(./on_poweroff[1])", &def->onPoweroff, VIR_DOMAIN_LIFECYCLE_DESTROY, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9201: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_crash", "string(./on_crash[1])", &def->onCrash, VIR_DOMAIN_LIFECYCLE_CRASH_DESTROY, virDomainLifecycleCrashTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9208: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_lockfailure", "string(./on_lockfailure[1])", &def->onLockFailure, VIR_DOMAIN_LOCK_FAILURE_DEFAULT, virDomainLockFailureTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9215: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-mem/@enabled)", &def->pm.s3) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9220: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-disk/@enabled)", &def->pm.s4) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9226: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9227: cond_false: Condition "(def->clock.offset = virDomainClockOffsetTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9231: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9232: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9233: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9235: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9236: switch: Switch case value "1" >libvirt-0.10.2/src/conf/domain_conf.c:9237: switch_case: Reached case "1" >libvirt-0.10.2/src/conf/domain_conf.c:9240: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9241: cond_true: Condition "__coverity_strcmp(tmp, "reset") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9243: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9260: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9261: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9262: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9264: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9265: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9292: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9294: cond_false: Condition "(n = virXPathNodeSet("./clock/timer", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9296: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_false: Condition "virAllocN(&def->clock.timers, 8UL /* sizeof (*def->clock.timers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9307: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9313: cond_false: Condition "!def->os.type", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9324: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "__coverity_strcmp(def->os.type, "linux") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "def->virtType == VIR_DOMAIN_VIRT_XEN", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9332: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "(size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "(char const *)"xen"[0] == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "__retval != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "!(def->os.type = ((1 && (size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1) ? ((char const *)"xen"[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup("xen")))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9335: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9338: cond_false: Condition "!virCapabilitiesSupportsGuestOSType(caps, def->os.type)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9342: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9345: cond_true: Condition "def->os.arch", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9346: cond_false: Condition "!virCapabilitiesSupportsGuestArch(caps, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9351: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9353: cond_false: Condition "!virCapabilitiesSupportsGuestOSTypeArch(caps, def->os.type, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9360: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9361: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9372: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9375: cond_false: Condition "!def->os.machine", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9385: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9396: cond_true: Condition "__coverity_strcmp(def->os.type, "exe") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9398: cond_false: Condition "!def->os.init", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9409: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9412: cond_false: Condition "(n = virXPathNodeSet("./os/initarg", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9414: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9416: cond_false: Condition "virAllocN(&def->os.initargv, 8UL /* sizeof (*def->os.initargv) */, n + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9429: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9432: cond_true: Condition "__coverity_strcmp(def->os.type, "xen") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9442: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9443: cond_false: Condition "virDomainDefParseBootXML(ctxt, def, &bootMapSize) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_true: Condition "bootMapSize", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_false: Condition "!(bootMap = virBitmapNew(bootMapSize))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9450: cond_false: Condition "!def->emulator", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9454: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9457: cond_false: Condition "(n = virXPathNodeSet("./devices/disk", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_false: Condition "virAllocN(&def->disks, 8UL /* sizeof (*def->disks) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9476: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9479: cond_false: Condition "(n = virXPathNodeSet("./devices/controller", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_false: Condition "virAllocN(&def->controllers, 8UL /* sizeof (*def->controllers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_true: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9493: cond_true: Condition "controller->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_other", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_none", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9499: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9501: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9509: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_false: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9510: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9514: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_QEMU", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_KQEMU", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_KVM", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9523: cond_false: Condition "(n = virXPathNodeSet("./devices/lease", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9527: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9528: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9528: cond_false: Condition "virAllocN(&def->leases, 8UL /* sizeof (*def->leases) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9532: cond_false: Condition "!lease", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9532: cond_false: Condition "!lease", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9537: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9540: cond_false: Condition "(n = virXPathNodeSet("./devices/filesystem", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9542: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9543: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9543: cond_false: Condition "virAllocN(&def->fss, 8UL /* sizeof (*def->fss) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9548: cond_false: Condition "!fs", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9548: cond_false: Condition "!fs", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9553: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9556: cond_false: Condition "(n = virXPathNodeSet("./devices/interface", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9558: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9559: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9559: cond_false: Condition "virAllocN(&def->nets, 8UL /* sizeof (*def->nets) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9567: cond_false: Condition "!net", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_true: Condition "net->type == VIR_DOMAIN_NET_TYPE_HOSTDEV", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_false: Condition "virDomainHostdevInsert(def, &net->data.hostdev.def) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9576: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9567: cond_false: Condition "!net", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_false: Condition "net->type == VIR_DOMAIN_NET_TYPE_HOSTDEV", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9576: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9578: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9582: cond_false: Condition "(n = virXPathNodeSet("./devices/smartcard", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9584: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9585: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9585: cond_false: Condition "virAllocN(&def->smartcards, 8UL /* sizeof (*def->smartcards) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9591: cond_false: Condition "!card", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9591: cond_false: Condition "!card", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9596: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9600: cond_false: Condition "(n = virXPathNodeSet("./devices/parallel", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9602: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9603: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9603: cond_false: Condition "virAllocN(&def->parallels, 8UL /* sizeof (*def->parallels) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9614: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9617: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9614: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9617: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9621: cond_true: Condition "def->parallels[j]->target.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9620: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9628: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9630: cond_false: Condition "(n = virXPathNodeSet("./devices/serial", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9633: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9633: cond_false: Condition "virAllocN(&def->serials, 8UL /* sizeof (*def->serials) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9644: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9647: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9644: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9647: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9651: cond_true: Condition "def->serials[j]->target.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9650: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9658: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9660: cond_false: Condition "(n = virXPathNodeSet("./devices/console", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9664: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9665: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9665: cond_false: Condition "virAllocN(&def->consoles, 8UL /* sizeof (*def->consoles) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9700: cond_false: Condition "i != 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9705: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9708: cond_true: Condition "def->nserials != 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9709: cond_true: Condition "virDomainChrSourceDefIsEqual(&def->serials[0]->source, &chr->source)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9713: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9715: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9716: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9725: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9727: cond_false: Condition "create_stub", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9733: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_false: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9734: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_false: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9734: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9740: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9742: cond_false: Condition "(n = virXPathNodeSet("./devices/channel", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9744: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9745: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9745: cond_false: Condition "virAllocN(&def->channels, 8UL /* sizeof (*def->channels) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.addr.vioserial.port == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.addr.vioserial.port == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.addr.vioserial.controller == chr->info.addr.vioserial.controller", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.addr.vioserial.bus == chr->info.addr.vioserial.bus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "(int)thischr->info.addr.vioserial.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9770: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_false: Condition "chr->info.addr.vioserial.port == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9779: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9785: cond_false: Condition "(n = virXPathNodeSet("./devices/input", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9787: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9788: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9788: cond_false: Condition "virAllocN(&def->inputs, 8UL /* sizeof (*def->inputs) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9795: cond_false: Condition "!input", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9799: cond_false: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9804: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_PS2", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->type == VIR_DOMAIN_INPUT_TYPE_MOUSE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9816: continue: Continuing loop >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9795: cond_false: Condition "!input", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9799: cond_false: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9804: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_PS2", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->type == VIR_DOMAIN_INPUT_TYPE_MOUSE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9816: continue: Continuing loop >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9821: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9824: cond_false: Condition "(n = virXPathNodeSet("./devices/graphics", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9826: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9827: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9827: cond_false: Condition "virAllocN(&def->graphics, 8UL /* sizeof (*def->graphics) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9829: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9833: cond_false: Condition "!graphics", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9837: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9829: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9829: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9837: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9838: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9841: cond_true: Condition "def->ngraphics > 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9844: cond_false: Condition "virAlloc(&input, 80UL /* sizeof (*input) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9846: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9847: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9850: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9853: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9855: cond_false: Condition "virReallocN(&def->inputs, 8UL /* sizeof (*def->inputs) */, def->ninputs + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9858: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9865: cond_false: Condition "(n = virXPathNodeSet("./devices/sound", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9867: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9868: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9868: cond_false: Condition "virAllocN(&def->sounds, 8UL /* sizeof (*def->sounds) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9874: cond_false: Condition "!sound", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9874: cond_false: Condition "!sound", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9879: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9882: cond_false: Condition "(n = virXPathNodeSet("./devices/video", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9884: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9885: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9885: cond_false: Condition "virAllocN(&def->videos, 8UL /* sizeof (*def->videos) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9891: cond_false: Condition "!video", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9891: cond_false: Condition "!video", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9895: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9899: cond_true: Condition "def->ngraphics", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9899: cond_true: Condition "!def->nvideos", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9901: cond_false: Condition "virAlloc(&video, 96UL /* sizeof (*video) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9904: cond_false: Condition "video->type < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9909: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9912: cond_false: Condition "virAllocN(&def->videos, 8UL /* sizeof (*def->videos) */, 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9915: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9920: cond_false: Condition "(n = virXPathNodeSet("./devices/hostdev", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9922: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9923: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9923: cond_false: Condition "virReallocN(&def->hostdevs, 8UL /* sizeof (*def->hostdevs) */, def->nhostdevs + n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9925: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9928: alloc_fn: Storage is returned from allocation function "virDomainHostdevDefParseXML(xmlNodePtr const, xmlXPathContextPtr, virBitmapPtr, unsigned int)". >libvirt-0.10.2/src/conf/domain_conf.c:7285:5: alloc_fn: Storage is returned from allocation function "virDomainHostdevDefAlloc(void)". >libvirt-0.10.2/src/conf/domain_conf.c:1410:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "def". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:1410:5: cond_false: Condition "virAlloc(&def, 64UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:1413:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:1414:5: cond_false: Condition "virAlloc(&def->info, 72UL /* sizeof (*def->info) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:1418:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:1419:5: return_alloc: Returning allocated memory "def". >libvirt-0.10.2/src/conf/domain_conf.c:7285:5: var_assign: Assigning: "def" = "virDomainHostdevDefAlloc()". >libvirt-0.10.2/src/conf/domain_conf.c:7285:5: cond_false: Condition "!(def = virDomainHostdevDefAlloc())", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7289:5: noescape: Resource "def" is not freed or pointed-to in function "virDomainHostdevPartsParse(xmlNodePtr, xmlXPathContextPtr, char const *, char const *, virDomainHostdevDefPtr, unsigned int)". >libvirt-0.10.2/src/conf/domain_conf.c:2957:51: noescape: "virDomainHostdevPartsParse(xmlNodePtr, xmlXPathContextPtr, char const *, char const *, virDomainHostdevDefPtr, unsigned int)" does not free or save its pointer parameter "def". >libvirt-0.10.2/src/conf/domain_conf.c:7289:5: cond_false: Condition "virDomainHostdevPartsParse(node, ctxt, mode, type, def, flags) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7292:5: cond_true: Condition "def->info->type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7293:9: cond_false: Condition "virDomainDeviceInfoParseXML(node, bootMap, def->info, flags | VIR_DOMAIN_XML_INTERNAL_ALLOW_BOOT | VIR_DOMAIN_XML_INTERNAL_ALLOW_ROM) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7299:5: cond_true: Condition "def->mode == VIR_DOMAIN_HOSTDEV_MODE_SUBSYS", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7300:9: switch: Switch case value "1" >libvirt-0.10.2/src/conf/domain_conf.c:7301:14: switch_case: Reached case "1" >libvirt-0.10.2/src/conf/domain_conf.c:7302:13: cond_false: Condition "def->info->type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7307:13: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7308:13: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:7309:9: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:7313:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7314:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7316:5: return_alloc: Returning allocated memory "def". >libvirt-0.10.2/src/conf/domain_conf.c:9928: var_assign: Assigning: "hostdev" = storage returned from "virDomainHostdevDefParseXML(nodes[i], ctxt, bootMap, flags)". >libvirt-0.10.2/src/conf/domain_conf.c:9929: cond_false: Condition "!hostdev", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9932: cond_true: Condition "hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9932: cond_true: Condition "usb_none", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9937: goto: Jumping to label "error" >libvirt-0.10.2/src/conf/domain_conf.c:9937: leaked_storage: Variable "hostdev" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:8598: cond_false: Condition "virAlloc(&def, 840UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8601: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8603: cond_true: Condition "!(flags & VIR_DOMAIN_XML_INACTIVE)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8604: cond_true: Condition "virXPathLong("string(./@id)", ctxt, &id) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8609: cond_false: Condition "!(tmp = virXPathString("string(./@type)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8613: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8615: cond_false: Condition "(def->virtType = virDomainVirtTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8619: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8620: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8622: cond_false: Condition "(expectedVirtTypes & (1 << def->virtType)) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8659: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8662: cond_false: Condition "!(def->name = virXPathString("string(./name[1])", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8665: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8671: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8678: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8679: cond_false: Condition "virUUIDParse(tmp, def->uuid) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8683: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8684: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_true: Condition "def->title", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_false: Condition "__coverity_strchr(def->title, 10)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8693: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8700: cond_false: Condition "virSecurityLabelDefsParseXML(def, ctxt, caps, flags) == -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8704: cond_false: Condition "virDomainParseMemory("./memory[1]", ctxt, &def->mem.max_balloon, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8708: cond_false: Condition "virDomainParseMemory("./currentMemory[1]", ctxt, &def->mem.cur_balloon, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8714: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8717: cond_false: Condition "def->mem.dump_core <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8720: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8721: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8724: cond_true: Condition "def->mem.cur_balloon > def->mem.max_balloon", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8728: cond_false: Condition "(def->mem.cur_balloon + 4096 - 1) / 4096 > (def->mem.max_balloon + 4096 - 1) / 4096", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8735: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8740: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8745: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8749: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8753: cond_false: Condition "virXPathUInt("string(./blkiotune/weight)", ctxt, &def->blkio.weight) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8757: cond_false: Condition "(n = virXPathNodeSet("./blkiotune/device", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8761: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_false: Condition "virAllocN(&def->blkio.devices, 16UL /* sizeof (*def->blkio.devices) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8772: cond_false: Condition "__coverity_strcmp((def->blkio.devices + j).path, (def->blkio.devices + i).path) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8778: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8784: cond_false: Condition "virDomainParseMemory("./memtune/hard_limit[1]", ctxt, &def->mem.hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8788: cond_false: Condition "virDomainParseMemory("./memtune/soft_limit[1]", ctxt, &def->mem.soft_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8792: cond_false: Condition "virDomainParseMemory("./memtune/min_guarantee[1]", ctxt, &def->mem.min_guarantee, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8796: cond_false: Condition "virDomainParseMemory("./memtune/swap_hard_limit[1]", ctxt, &def->mem.swap_hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8801: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8805: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8807: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8809: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8813: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8817: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8821: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8823: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8825: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8829: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8831: cond_false: Condition "def->maxvcpus < count", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8836: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8840: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8841: cond_false: Condition "(def->placement_mode = virDomainCpuPlacementModeTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8847: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8848: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8849: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8851: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8853: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8855: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8856: cond_false: Condition "virBitmapParse(tmp, 0, &def->cpumask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8861: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8862: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8867: cond_true: Condition "virXPathULong("string(./cputune/shares[1])", ctxt, &def->cputune.shares) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8871: cond_false: Condition "virXPathULongLong("string(./cputune/period[1])", ctxt, &def->cputune.period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8875: cond_false: Condition "virXPathLongLong("string(./cputune/quota[1])", ctxt, &def->cputune.quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8879: cond_false: Condition "virXPathULongLong("string(./cputune/emulator_period[1])", ctxt, &def->cputune.emulator_period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8883: cond_false: Condition "virXPathLongLong("string(./cputune/emulator_quota[1])", ctxt, &def->cputune.emulator_quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8887: cond_false: Condition "(n = virXPathNodeSet("./cputune/vcpupin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8889: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_false: Condition "virAllocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8894: cond_false: Condition "n > def->maxvcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8898: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_false: Condition "vcpupin->vcpuid >= def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8926: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8931: cond_true: Condition "def->cpumask", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8932: cond_false: Condition "!def->cputune.vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8937: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8938: cond_false: Condition "virReallocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, def->vcpus) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8941: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_false: Condition "i < def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8963: cond_false: Condition "(n = virXPathNodeSet("./cputune/emulatorpin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8967: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8973: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8974: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8975: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8980: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8985: cond_false: Condition "!def->cputune.emulatorpin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8987: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8989: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8991: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8994: cond_false: Condition "(n = virXPathNodeSet("./numatune", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8998: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9000: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9005: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9007: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_true: Condition "cur != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9010: cond_true: Condition "cur->type == XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9011: cond_true: Condition "xmlStrEqual(cur->name, (xmlChar *)"memory")", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9017: cond_true: Condition "mode", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9018: cond_false: Condition "(def->numatune.memory.mode = virDomainNumatuneMemModeTypeFromString(mode)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9026: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9027: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9028: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9030: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9033: cond_true: Condition "nodeset", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9034: cond_false: Condition "virBitmapParse(nodeset, 0, &def->numatune.memory.nodemask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9040: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9041: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9046: cond_true: Condition "placement", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9047: cond_false: Condition "(placement_mode = virDomainNumatuneMemPlacementModeTypeFromString(placement)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9054: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9055: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9056: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_true: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_STATIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_false: Condition "!def->numatune.memory.nodemask", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9075: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9078: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9084: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9089: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9094: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_false: Condition "cur != NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9098: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9106: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9107: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9110: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9112: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_false: Condition "tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9134: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9137: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9140: cond_true: Condition "def->features & (64 /* 1 << VIR_DOMAIN_FEATURE_HYPERV */)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9144: cond_false: Condition "(n = virXPathNodeSet("./features/hyperv/*", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9183: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9187: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_reboot", "string(./on_reboot[1])", &def->onReboot, VIR_DOMAIN_LIFECYCLE_RESTART, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9194: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_poweroff", "string(./on_poweroff[1])", &def->onPoweroff, VIR_DOMAIN_LIFECYCLE_DESTROY, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9201: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_crash", "string(./on_crash[1])", &def->onCrash, VIR_DOMAIN_LIFECYCLE_CRASH_DESTROY, virDomainLifecycleCrashTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9208: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_lockfailure", "string(./on_lockfailure[1])", &def->onLockFailure, VIR_DOMAIN_LOCK_FAILURE_DEFAULT, virDomainLockFailureTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9215: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-mem/@enabled)", &def->pm.s3) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9220: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-disk/@enabled)", &def->pm.s4) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9226: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9227: cond_false: Condition "(def->clock.offset = virDomainClockOffsetTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9231: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9232: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9233: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9235: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9236: switch: Switch case value "1" >libvirt-0.10.2/src/conf/domain_conf.c:9237: switch_case: Reached case "1" >libvirt-0.10.2/src/conf/domain_conf.c:9240: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9241: cond_true: Condition "__coverity_strcmp(tmp, "reset") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9243: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9260: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9261: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9262: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9264: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9265: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9292: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9294: cond_false: Condition "(n = virXPathNodeSet("./clock/timer", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9296: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_false: Condition "virAllocN(&def->clock.timers, 8UL /* sizeof (*def->clock.timers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9307: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9313: cond_false: Condition "!def->os.type", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9324: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "__coverity_strcmp(def->os.type, "linux") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "def->virtType == VIR_DOMAIN_VIRT_XEN", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9332: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "(size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "(char const *)"xen"[0] == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "__retval != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "!(def->os.type = ((1 && (size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1) ? ((char const *)"xen"[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup("xen")))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9335: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9338: cond_false: Condition "!virCapabilitiesSupportsGuestOSType(caps, def->os.type)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9342: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9345: cond_true: Condition "def->os.arch", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9346: cond_false: Condition "!virCapabilitiesSupportsGuestArch(caps, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9351: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9353: cond_false: Condition "!virCapabilitiesSupportsGuestOSTypeArch(caps, def->os.type, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9360: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9361: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9372: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9375: cond_false: Condition "!def->os.machine", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9385: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9396: cond_true: Condition "__coverity_strcmp(def->os.type, "exe") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9398: cond_false: Condition "!def->os.init", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9409: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9412: cond_false: Condition "(n = virXPathNodeSet("./os/initarg", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9414: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9416: cond_false: Condition "virAllocN(&def->os.initargv, 8UL /* sizeof (*def->os.initargv) */, n + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9429: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9432: cond_true: Condition "__coverity_strcmp(def->os.type, "xen") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9442: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9443: cond_false: Condition "virDomainDefParseBootXML(ctxt, def, &bootMapSize) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_true: Condition "bootMapSize", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_false: Condition "!(bootMap = virBitmapNew(bootMapSize))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9450: cond_false: Condition "!def->emulator", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9454: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9457: cond_false: Condition "(n = virXPathNodeSet("./devices/disk", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_false: Condition "virAllocN(&def->disks, 8UL /* sizeof (*def->disks) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9476: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9479: cond_false: Condition "(n = virXPathNodeSet("./devices/controller", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_false: Condition "virAllocN(&def->controllers, 8UL /* sizeof (*def->controllers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_true: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9493: cond_true: Condition "controller->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_other", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_none", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9499: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9501: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9509: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_false: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9510: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9514: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_QEMU", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_KQEMU", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_KVM", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9523: cond_false: Condition "(n = virXPathNodeSet("./devices/lease", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9527: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9528: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9528: cond_false: Condition "virAllocN(&def->leases, 8UL /* sizeof (*def->leases) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9532: cond_false: Condition "!lease", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9532: cond_false: Condition "!lease", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9537: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9540: cond_false: Condition "(n = virXPathNodeSet("./devices/filesystem", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9542: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9543: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9543: cond_false: Condition "virAllocN(&def->fss, 8UL /* sizeof (*def->fss) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9548: cond_false: Condition "!fs", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9548: cond_false: Condition "!fs", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9553: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9556: cond_false: Condition "(n = virXPathNodeSet("./devices/interface", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9558: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9559: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9559: cond_false: Condition "virAllocN(&def->nets, 8UL /* sizeof (*def->nets) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9567: cond_false: Condition "!net", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_true: Condition "net->type == VIR_DOMAIN_NET_TYPE_HOSTDEV", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_false: Condition "virDomainHostdevInsert(def, &net->data.hostdev.def) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9576: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9567: cond_false: Condition "!net", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_false: Condition "net->type == VIR_DOMAIN_NET_TYPE_HOSTDEV", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9576: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9578: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9582: cond_false: Condition "(n = virXPathNodeSet("./devices/smartcard", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9584: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9585: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9585: cond_false: Condition "virAllocN(&def->smartcards, 8UL /* sizeof (*def->smartcards) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9591: cond_false: Condition "!card", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9591: cond_false: Condition "!card", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9596: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9600: cond_false: Condition "(n = virXPathNodeSet("./devices/parallel", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9602: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9603: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9603: cond_false: Condition "virAllocN(&def->parallels, 8UL /* sizeof (*def->parallels) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9614: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9617: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9614: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9617: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9621: cond_true: Condition "def->parallels[j]->target.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9620: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9628: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9630: cond_false: Condition "(n = virXPathNodeSet("./devices/serial", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9633: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9633: cond_false: Condition "virAllocN(&def->serials, 8UL /* sizeof (*def->serials) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9644: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9647: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9644: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9647: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9651: cond_true: Condition "def->serials[j]->target.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9650: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9658: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9660: cond_false: Condition "(n = virXPathNodeSet("./devices/console", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9664: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9665: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9665: cond_false: Condition "virAllocN(&def->consoles, 8UL /* sizeof (*def->consoles) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9700: cond_false: Condition "i != 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9705: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9708: cond_true: Condition "def->nserials != 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9709: cond_true: Condition "virDomainChrSourceDefIsEqual(&def->serials[0]->source, &chr->source)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9713: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9715: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9716: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9725: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9727: cond_false: Condition "create_stub", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9733: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_false: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9734: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_false: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9734: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9740: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9742: cond_false: Condition "(n = virXPathNodeSet("./devices/channel", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9744: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9745: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9745: cond_false: Condition "virAllocN(&def->channels, 8UL /* sizeof (*def->channels) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.addr.vioserial.port == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.addr.vioserial.port == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.addr.vioserial.controller == chr->info.addr.vioserial.controller", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.addr.vioserial.bus == chr->info.addr.vioserial.bus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "(int)thischr->info.addr.vioserial.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9770: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_false: Condition "chr->info.addr.vioserial.port == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9779: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9785: cond_false: Condition "(n = virXPathNodeSet("./devices/input", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9787: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9788: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9788: cond_false: Condition "virAllocN(&def->inputs, 8UL /* sizeof (*def->inputs) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9795: cond_false: Condition "!input", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9799: cond_false: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9804: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_PS2", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->type == VIR_DOMAIN_INPUT_TYPE_MOUSE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9816: continue: Continuing loop >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9795: cond_false: Condition "!input", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9799: cond_false: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9804: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_PS2", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->type == VIR_DOMAIN_INPUT_TYPE_MOUSE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9816: continue: Continuing loop >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9821: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9824: cond_false: Condition "(n = virXPathNodeSet("./devices/graphics", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9826: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9827: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9827: cond_false: Condition "virAllocN(&def->graphics, 8UL /* sizeof (*def->graphics) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9829: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9833: cond_false: Condition "!graphics", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9837: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9829: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9829: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9837: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9838: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9841: cond_true: Condition "def->ngraphics > 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9844: cond_false: Condition "virAlloc(&input, 80UL /* sizeof (*input) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9846: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9847: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9850: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9853: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9855: cond_false: Condition "virReallocN(&def->inputs, 8UL /* sizeof (*def->inputs) */, def->ninputs + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9858: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9865: cond_false: Condition "(n = virXPathNodeSet("./devices/sound", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9867: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9868: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9868: cond_false: Condition "virAllocN(&def->sounds, 8UL /* sizeof (*def->sounds) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9874: cond_false: Condition "!sound", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9874: cond_false: Condition "!sound", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9879: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9882: cond_false: Condition "(n = virXPathNodeSet("./devices/video", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9884: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9885: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9885: cond_false: Condition "virAllocN(&def->videos, 8UL /* sizeof (*def->videos) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9891: cond_false: Condition "!video", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9891: cond_false: Condition "!video", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9895: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9899: cond_true: Condition "def->ngraphics", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9899: cond_true: Condition "!def->nvideos", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9901: cond_false: Condition "virAlloc(&video, 96UL /* sizeof (*video) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9904: cond_false: Condition "video->type < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9909: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9912: cond_false: Condition "virAllocN(&def->videos, 8UL /* sizeof (*def->videos) */, 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9915: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9920: cond_false: Condition "(n = virXPathNodeSet("./devices/hostdev", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9922: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9923: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9923: cond_false: Condition "virReallocN(&def->hostdevs, 8UL /* sizeof (*def->hostdevs) */, def->nhostdevs + n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9925: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9929: cond_false: Condition "!hostdev", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9932: cond_false: Condition "hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9938: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9941: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9925: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9925: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9929: cond_false: Condition "!hostdev", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9932: cond_false: Condition "hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9938: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9941: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9925: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9925: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9941: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9942: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9946: cond_false: Condition "(n = virXPathNodeSet("./devices/watchdog", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9948: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9949: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9954: cond_true: Condition "n > 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9957: cond_false: Condition "!watchdog", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9961: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9966: cond_false: Condition "(n = virXPathNodeSet("./devices/memballoon", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9968: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9969: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9973: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9974: cond_true: Condition "n > 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9977: cond_false: Condition "!memballoon", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9981: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9982: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9999: cond_false: Condition "(n = virXPathNodeSet("./devices/hub", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10001: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:10002: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10002: cond_false: Condition "virAllocN(&def->hubs, 8UL /* sizeof (*def->hubs) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10004: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10005: alloc_fn: Storage is returned from allocation function "virDomainHubDefParseXML(xmlNodePtr, unsigned int)". >libvirt-0.10.2/src/conf/domain_conf.c:6030:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "def". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6030:5: cond_false: Condition "virAlloc(&def, 80UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6033:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:6037:5: cond_false: Condition "!type", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6041:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:6043:5: cond_false: Condition "(def->type = virDomainHubTypeFromString(type)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6047:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:6049:5: cond_false: Condition "virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6053:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6055:5: return_alloc: Returning allocated memory "def". >libvirt-0.10.2/src/conf/domain_conf.c:10005: var_assign: Assigning: "hub" = storage returned from "virDomainHubDefParseXML(nodes[i], flags)". >libvirt-0.10.2/src/conf/domain_conf.c:10006: cond_false: Condition "!hub", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10009: cond_true: Condition "hub->type == VIR_DOMAIN_HUB_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10009: cond_true: Condition "usb_none", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10013: goto: Jumping to label "error" >libvirt-0.10.2/src/conf/domain_conf.c:10013: leaked_storage: Variable "hub" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:8598: cond_false: Condition "virAlloc(&def, 840UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8601: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8603: cond_true: Condition "!(flags & VIR_DOMAIN_XML_INACTIVE)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8604: cond_true: Condition "virXPathLong("string(./@id)", ctxt, &id) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8609: cond_false: Condition "!(tmp = virXPathString("string(./@type)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8613: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8615: cond_false: Condition "(def->virtType = virDomainVirtTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8619: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8620: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8622: cond_false: Condition "(expectedVirtTypes & (1 << def->virtType)) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8659: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8662: cond_false: Condition "!(def->name = virXPathString("string(./name[1])", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8665: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8671: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8678: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8679: cond_false: Condition "virUUIDParse(tmp, def->uuid) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8683: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8684: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_true: Condition "def->title", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_false: Condition "__coverity_strchr(def->title, 10)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8693: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8700: cond_false: Condition "virSecurityLabelDefsParseXML(def, ctxt, caps, flags) == -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8704: cond_false: Condition "virDomainParseMemory("./memory[1]", ctxt, &def->mem.max_balloon, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8708: cond_false: Condition "virDomainParseMemory("./currentMemory[1]", ctxt, &def->mem.cur_balloon, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8714: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8717: cond_false: Condition "def->mem.dump_core <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8720: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8721: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8724: cond_true: Condition "def->mem.cur_balloon > def->mem.max_balloon", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8728: cond_false: Condition "(def->mem.cur_balloon + 4096 - 1) / 4096 > (def->mem.max_balloon + 4096 - 1) / 4096", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8735: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8740: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8745: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8749: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8753: cond_false: Condition "virXPathUInt("string(./blkiotune/weight)", ctxt, &def->blkio.weight) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8757: cond_false: Condition "(n = virXPathNodeSet("./blkiotune/device", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8761: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_false: Condition "virAllocN(&def->blkio.devices, 16UL /* sizeof (*def->blkio.devices) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8772: cond_false: Condition "__coverity_strcmp((def->blkio.devices + j).path, (def->blkio.devices + i).path) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8778: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8784: cond_false: Condition "virDomainParseMemory("./memtune/hard_limit[1]", ctxt, &def->mem.hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8788: cond_false: Condition "virDomainParseMemory("./memtune/soft_limit[1]", ctxt, &def->mem.soft_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8792: cond_false: Condition "virDomainParseMemory("./memtune/min_guarantee[1]", ctxt, &def->mem.min_guarantee, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8796: cond_false: Condition "virDomainParseMemory("./memtune/swap_hard_limit[1]", ctxt, &def->mem.swap_hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8801: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8805: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8807: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8809: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8813: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8817: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8821: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8823: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8825: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8829: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8831: cond_false: Condition "def->maxvcpus < count", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8836: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8840: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8841: cond_false: Condition "(def->placement_mode = virDomainCpuPlacementModeTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8847: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8848: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8849: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8851: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8853: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8855: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8856: cond_false: Condition "virBitmapParse(tmp, 0, &def->cpumask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8861: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8862: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8867: cond_true: Condition "virXPathULong("string(./cputune/shares[1])", ctxt, &def->cputune.shares) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8871: cond_false: Condition "virXPathULongLong("string(./cputune/period[1])", ctxt, &def->cputune.period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8875: cond_false: Condition "virXPathLongLong("string(./cputune/quota[1])", ctxt, &def->cputune.quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8879: cond_false: Condition "virXPathULongLong("string(./cputune/emulator_period[1])", ctxt, &def->cputune.emulator_period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8883: cond_false: Condition "virXPathLongLong("string(./cputune/emulator_quota[1])", ctxt, &def->cputune.emulator_quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8887: cond_false: Condition "(n = virXPathNodeSet("./cputune/vcpupin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8889: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_false: Condition "virAllocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8894: cond_false: Condition "n > def->maxvcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8898: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_false: Condition "vcpupin->vcpuid >= def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8926: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8931: cond_true: Condition "def->cpumask", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8932: cond_false: Condition "!def->cputune.vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8937: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8938: cond_false: Condition "virReallocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, def->vcpus) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8941: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_false: Condition "i < def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8963: cond_false: Condition "(n = virXPathNodeSet("./cputune/emulatorpin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8967: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8973: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8974: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8975: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8980: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8985: cond_false: Condition "!def->cputune.emulatorpin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8987: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8989: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8991: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8994: cond_false: Condition "(n = virXPathNodeSet("./numatune", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8998: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9000: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9005: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9007: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_true: Condition "cur != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9010: cond_true: Condition "cur->type == XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9011: cond_true: Condition "xmlStrEqual(cur->name, (xmlChar *)"memory")", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9017: cond_true: Condition "mode", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9018: cond_false: Condition "(def->numatune.memory.mode = virDomainNumatuneMemModeTypeFromString(mode)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9026: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9027: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9028: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9030: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9033: cond_true: Condition "nodeset", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9034: cond_false: Condition "virBitmapParse(nodeset, 0, &def->numatune.memory.nodemask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9040: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9041: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9046: cond_true: Condition "placement", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9047: cond_false: Condition "(placement_mode = virDomainNumatuneMemPlacementModeTypeFromString(placement)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9054: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9055: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9056: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_true: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_STATIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_false: Condition "!def->numatune.memory.nodemask", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9075: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9078: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9084: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9089: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9094: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_false: Condition "cur != NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9098: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9106: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9107: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9110: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9112: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_false: Condition "tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9134: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9137: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9140: cond_true: Condition "def->features & (64 /* 1 << VIR_DOMAIN_FEATURE_HYPERV */)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9144: cond_false: Condition "(n = virXPathNodeSet("./features/hyperv/*", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9183: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9187: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_reboot", "string(./on_reboot[1])", &def->onReboot, VIR_DOMAIN_LIFECYCLE_RESTART, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9194: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_poweroff", "string(./on_poweroff[1])", &def->onPoweroff, VIR_DOMAIN_LIFECYCLE_DESTROY, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9201: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_crash", "string(./on_crash[1])", &def->onCrash, VIR_DOMAIN_LIFECYCLE_CRASH_DESTROY, virDomainLifecycleCrashTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9208: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_lockfailure", "string(./on_lockfailure[1])", &def->onLockFailure, VIR_DOMAIN_LOCK_FAILURE_DEFAULT, virDomainLockFailureTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9215: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-mem/@enabled)", &def->pm.s3) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9220: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-disk/@enabled)", &def->pm.s4) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9226: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9227: cond_false: Condition "(def->clock.offset = virDomainClockOffsetTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9231: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9232: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9233: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9235: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9236: switch: Switch case value "1" >libvirt-0.10.2/src/conf/domain_conf.c:9237: switch_case: Reached case "1" >libvirt-0.10.2/src/conf/domain_conf.c:9240: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9241: cond_true: Condition "__coverity_strcmp(tmp, "reset") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9243: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9260: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9261: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9262: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9264: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9265: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9292: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9294: cond_false: Condition "(n = virXPathNodeSet("./clock/timer", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9296: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_false: Condition "virAllocN(&def->clock.timers, 8UL /* sizeof (*def->clock.timers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9307: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9313: cond_false: Condition "!def->os.type", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9324: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "__coverity_strcmp(def->os.type, "linux") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "def->virtType == VIR_DOMAIN_VIRT_XEN", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9332: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "(size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "(char const *)"xen"[0] == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "__retval != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "!(def->os.type = ((1 && (size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1) ? ((char const *)"xen"[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup("xen")))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9335: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9338: cond_false: Condition "!virCapabilitiesSupportsGuestOSType(caps, def->os.type)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9342: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9345: cond_true: Condition "def->os.arch", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9346: cond_false: Condition "!virCapabilitiesSupportsGuestArch(caps, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9351: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9353: cond_false: Condition "!virCapabilitiesSupportsGuestOSTypeArch(caps, def->os.type, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9360: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9361: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9372: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9375: cond_false: Condition "!def->os.machine", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9385: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9396: cond_true: Condition "__coverity_strcmp(def->os.type, "exe") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9398: cond_false: Condition "!def->os.init", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9409: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9412: cond_false: Condition "(n = virXPathNodeSet("./os/initarg", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9414: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9416: cond_false: Condition "virAllocN(&def->os.initargv, 8UL /* sizeof (*def->os.initargv) */, n + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9429: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9432: cond_true: Condition "__coverity_strcmp(def->os.type, "xen") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9442: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9443: cond_false: Condition "virDomainDefParseBootXML(ctxt, def, &bootMapSize) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_true: Condition "bootMapSize", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_false: Condition "!(bootMap = virBitmapNew(bootMapSize))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9450: cond_false: Condition "!def->emulator", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9454: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9457: cond_false: Condition "(n = virXPathNodeSet("./devices/disk", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_false: Condition "virAllocN(&def->disks, 8UL /* sizeof (*def->disks) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9476: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9479: cond_false: Condition "(n = virXPathNodeSet("./devices/controller", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_false: Condition "virAllocN(&def->controllers, 8UL /* sizeof (*def->controllers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_true: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9493: cond_true: Condition "controller->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_other", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_none", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9499: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9501: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9509: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_false: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9510: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9514: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_QEMU", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_KQEMU", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_KVM", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9523: cond_false: Condition "(n = virXPathNodeSet("./devices/lease", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9527: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9528: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9528: cond_false: Condition "virAllocN(&def->leases, 8UL /* sizeof (*def->leases) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9532: cond_false: Condition "!lease", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9532: cond_false: Condition "!lease", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9537: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9540: cond_false: Condition "(n = virXPathNodeSet("./devices/filesystem", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9542: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9543: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9543: cond_false: Condition "virAllocN(&def->fss, 8UL /* sizeof (*def->fss) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9548: cond_false: Condition "!fs", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9548: cond_false: Condition "!fs", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9553: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9556: cond_false: Condition "(n = virXPathNodeSet("./devices/interface", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9558: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9559: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9559: cond_false: Condition "virAllocN(&def->nets, 8UL /* sizeof (*def->nets) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9567: cond_false: Condition "!net", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_true: Condition "net->type == VIR_DOMAIN_NET_TYPE_HOSTDEV", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_false: Condition "virDomainHostdevInsert(def, &net->data.hostdev.def) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9576: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9567: cond_false: Condition "!net", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_false: Condition "net->type == VIR_DOMAIN_NET_TYPE_HOSTDEV", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9576: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9578: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9582: cond_false: Condition "(n = virXPathNodeSet("./devices/smartcard", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9584: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9585: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9585: cond_false: Condition "virAllocN(&def->smartcards, 8UL /* sizeof (*def->smartcards) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9591: cond_false: Condition "!card", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9591: cond_false: Condition "!card", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9596: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9600: cond_false: Condition "(n = virXPathNodeSet("./devices/parallel", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9602: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9603: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9603: cond_false: Condition "virAllocN(&def->parallels, 8UL /* sizeof (*def->parallels) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9614: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9617: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9614: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9617: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9621: cond_true: Condition "def->parallels[j]->target.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9620: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9628: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9630: cond_false: Condition "(n = virXPathNodeSet("./devices/serial", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9633: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9633: cond_false: Condition "virAllocN(&def->serials, 8UL /* sizeof (*def->serials) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9644: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9647: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9644: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9647: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9651: cond_true: Condition "def->serials[j]->target.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9650: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9658: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9660: cond_false: Condition "(n = virXPathNodeSet("./devices/console", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9664: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9665: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9665: cond_false: Condition "virAllocN(&def->consoles, 8UL /* sizeof (*def->consoles) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9700: cond_false: Condition "i != 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9705: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9708: cond_true: Condition "def->nserials != 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9709: cond_true: Condition "virDomainChrSourceDefIsEqual(&def->serials[0]->source, &chr->source)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9713: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9715: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9716: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9725: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9727: cond_false: Condition "create_stub", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9733: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_false: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9734: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_false: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9734: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9740: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9742: cond_false: Condition "(n = virXPathNodeSet("./devices/channel", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9744: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9745: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9745: cond_false: Condition "virAllocN(&def->channels, 8UL /* sizeof (*def->channels) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.addr.vioserial.port == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.addr.vioserial.port == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.addr.vioserial.controller == chr->info.addr.vioserial.controller", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.addr.vioserial.bus == chr->info.addr.vioserial.bus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "(int)thischr->info.addr.vioserial.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9770: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_false: Condition "chr->info.addr.vioserial.port == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9779: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9785: cond_false: Condition "(n = virXPathNodeSet("./devices/input", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9787: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9788: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9788: cond_false: Condition "virAllocN(&def->inputs, 8UL /* sizeof (*def->inputs) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9792: alloc_fn: Storage is returned from allocation function "virDomainInputDefParseXML(char const *, xmlNodePtr, unsigned int)". >libvirt-0.10.2/src/conf/domain_conf.c:5934:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "def". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:5934:5: cond_false: Condition "virAlloc(&def, 80UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:5937:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5942:5: cond_false: Condition "!type", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:5946:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5948:5: cond_false: Condition "(def->type = virDomainInputTypeFromString(type)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:5952:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5954:5: cond_true: Condition "bus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:5955:9: cond_false: Condition "(def->bus = virDomainInputBusTypeFromString(bus)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:5959:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5961:9: cond_true: Condition "__coverity_strcmp(ostype, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:5962:13: cond_true: Condition "def->bus == VIR_DOMAIN_INPUT_BUS_PS2", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:5962:13: cond_false: Condition "def->type != VIR_DOMAIN_INPUT_TYPE_MOUSE", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:5968:13: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5969:13: cond_false: Condition "def->bus == VIR_DOMAIN_INPUT_BUS_XEN", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:5974:13: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5975:9: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5987:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5988:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5997:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:5999:5: cond_false: Condition "virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6002:5: cond_false: Condition "def->bus == VIR_DOMAIN_INPUT_BUS_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:6008:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:6011:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6012:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:6014:5: return_alloc: Returning allocated memory "def". >libvirt-0.10.2/src/conf/domain_conf.c:9792: var_assign: Assigning: "input" = storage returned from "virDomainInputDefParseXML(def->os.type, nodes[i], flags)". >libvirt-0.10.2/src/conf/domain_conf.c:9795: cond_false: Condition "!input", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9799: cond_true: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9799: cond_true: Condition "usb_none", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9803: goto: Jumping to label "error" >libvirt-0.10.2/src/conf/domain_conf.c:9803: leaked_storage: Variable "input" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:8598: cond_false: Condition "virAlloc(&def, 840UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8601: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8603: cond_true: Condition "!(flags & VIR_DOMAIN_XML_INACTIVE)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8604: cond_true: Condition "virXPathLong("string(./@id)", ctxt, &id) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8609: cond_false: Condition "!(tmp = virXPathString("string(./@type)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8613: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8615: cond_false: Condition "(def->virtType = virDomainVirtTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8619: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8620: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8622: cond_false: Condition "(expectedVirtTypes & (1 << def->virtType)) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8659: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8662: cond_false: Condition "!(def->name = virXPathString("string(./name[1])", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8665: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8671: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8678: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8679: cond_false: Condition "virUUIDParse(tmp, def->uuid) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8683: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8684: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_true: Condition "def->title", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_false: Condition "__coverity_strchr(def->title, 10)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8693: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8700: cond_false: Condition "virSecurityLabelDefsParseXML(def, ctxt, caps, flags) == -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8704: cond_false: Condition "virDomainParseMemory("./memory[1]", ctxt, &def->mem.max_balloon, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8708: cond_false: Condition "virDomainParseMemory("./currentMemory[1]", ctxt, &def->mem.cur_balloon, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8714: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8717: cond_false: Condition "def->mem.dump_core <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8720: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8721: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8724: cond_true: Condition "def->mem.cur_balloon > def->mem.max_balloon", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8728: cond_false: Condition "(def->mem.cur_balloon + 4096 - 1) / 4096 > (def->mem.max_balloon + 4096 - 1) / 4096", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8735: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8740: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8745: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8749: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8753: cond_false: Condition "virXPathUInt("string(./blkiotune/weight)", ctxt, &def->blkio.weight) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8757: cond_false: Condition "(n = virXPathNodeSet("./blkiotune/device", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8761: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_false: Condition "virAllocN(&def->blkio.devices, 16UL /* sizeof (*def->blkio.devices) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8772: cond_false: Condition "__coverity_strcmp((def->blkio.devices + j).path, (def->blkio.devices + i).path) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8778: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8784: cond_false: Condition "virDomainParseMemory("./memtune/hard_limit[1]", ctxt, &def->mem.hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8788: cond_false: Condition "virDomainParseMemory("./memtune/soft_limit[1]", ctxt, &def->mem.soft_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8792: cond_false: Condition "virDomainParseMemory("./memtune/min_guarantee[1]", ctxt, &def->mem.min_guarantee, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8796: cond_false: Condition "virDomainParseMemory("./memtune/swap_hard_limit[1]", ctxt, &def->mem.swap_hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8801: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8805: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8807: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8809: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8813: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8817: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8821: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8823: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8825: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8829: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8831: cond_false: Condition "def->maxvcpus < count", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8836: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8840: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8841: cond_false: Condition "(def->placement_mode = virDomainCpuPlacementModeTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8847: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8848: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8849: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8851: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8853: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8855: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8856: cond_false: Condition "virBitmapParse(tmp, 0, &def->cpumask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8861: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8862: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8867: cond_true: Condition "virXPathULong("string(./cputune/shares[1])", ctxt, &def->cputune.shares) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8871: cond_false: Condition "virXPathULongLong("string(./cputune/period[1])", ctxt, &def->cputune.period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8875: cond_false: Condition "virXPathLongLong("string(./cputune/quota[1])", ctxt, &def->cputune.quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8879: cond_false: Condition "virXPathULongLong("string(./cputune/emulator_period[1])", ctxt, &def->cputune.emulator_period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8883: cond_false: Condition "virXPathLongLong("string(./cputune/emulator_quota[1])", ctxt, &def->cputune.emulator_quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8887: cond_false: Condition "(n = virXPathNodeSet("./cputune/vcpupin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8889: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_false: Condition "virAllocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8894: cond_false: Condition "n > def->maxvcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8898: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_false: Condition "vcpupin->vcpuid >= def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8926: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8931: cond_true: Condition "def->cpumask", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8932: cond_false: Condition "!def->cputune.vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8937: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8938: cond_false: Condition "virReallocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, def->vcpus) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8941: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_true: Condition "i < def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8945: cond_true: Condition "!virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, i)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8950: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8944: cond_false: Condition "i < def->vcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8960: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8963: cond_false: Condition "(n = virXPathNodeSet("./cputune/emulatorpin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8967: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8973: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8974: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8975: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8980: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8985: cond_false: Condition "!def->cputune.emulatorpin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8987: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8989: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8991: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8994: cond_false: Condition "(n = virXPathNodeSet("./numatune", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8998: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9000: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9005: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9007: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_true: Condition "cur != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9010: cond_true: Condition "cur->type == XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9011: cond_true: Condition "xmlStrEqual(cur->name, (xmlChar *)"memory")", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9017: cond_true: Condition "mode", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9018: cond_false: Condition "(def->numatune.memory.mode = virDomainNumatuneMemModeTypeFromString(mode)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9026: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9027: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9028: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9030: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9033: cond_true: Condition "nodeset", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9034: cond_false: Condition "virBitmapParse(nodeset, 0, &def->numatune.memory.nodemask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9040: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9041: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9046: cond_true: Condition "placement", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9047: cond_false: Condition "(placement_mode = virDomainNumatuneMemPlacementModeTypeFromString(placement)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9054: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9055: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9056: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_true: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_STATIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9069: cond_false: Condition "!def->numatune.memory.nodemask", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9075: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9078: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9084: cond_false: Condition "placement_mode == VIR_DOMAIN_NUMATUNE_MEM_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9089: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9094: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9009: cond_false: Condition "cur != NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9097: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9098: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9106: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9107: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9110: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9112: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9126: cond_false: Condition "(eoi = virDomainFeatureStateTypeFromString(tmp)) <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9131: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9133: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9115: cond_false: Condition "val < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9120: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9122: cond_true: Condition "val == VIR_DOMAIN_FEATURE_APIC", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9124: cond_false: Condition "tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9134: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9113: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9136: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9137: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9140: cond_true: Condition "def->features & (64 /* 1 << VIR_DOMAIN_FEATURE_HYPERV */)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9144: cond_false: Condition "(n = virXPathNodeSet("./features/hyperv/*", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9149: cond_false: Condition "feature < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9154: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9158: switch: Switch case value "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9159: switch_case: Reached case "VIR_DOMAIN_HYPERV_RELAXED" >libvirt-0.10.2/src/conf/domain_conf.c:9160: cond_false: Condition "!(tmp = virXPathString("string(./@state)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9166: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9168: cond_false: Condition "(value = virDomainFeatureStateTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9174: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9177: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9181: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9147: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9182: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9183: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9187: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_reboot", "string(./on_reboot[1])", &def->onReboot, VIR_DOMAIN_LIFECYCLE_RESTART, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9194: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_poweroff", "string(./on_poweroff[1])", &def->onPoweroff, VIR_DOMAIN_LIFECYCLE_DESTROY, virDomainLifecycleTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9201: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_crash", "string(./on_crash[1])", &def->onCrash, VIR_DOMAIN_LIFECYCLE_CRASH_DESTROY, virDomainLifecycleCrashTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9208: cond_false: Condition "virDomainEventActionParseXML(ctxt, "on_lockfailure", "string(./on_lockfailure[1])", &def->onLockFailure, VIR_DOMAIN_LOCK_FAILURE_DEFAULT, virDomainLockFailureTypeFromString(char const *)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9215: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-mem/@enabled)", &def->pm.s3) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9220: cond_false: Condition "virDomainPMStateParseXML(ctxt, "string(./pm/suspend-to-disk/@enabled)", &def->pm.s4) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9226: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9227: cond_false: Condition "(def->clock.offset = virDomainClockOffsetTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9231: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9232: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9233: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9235: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9236: switch: Switch case value "1" >libvirt-0.10.2/src/conf/domain_conf.c:9237: switch_case: Reached case "1" >libvirt-0.10.2/src/conf/domain_conf.c:9240: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9241: cond_true: Condition "__coverity_strcmp(tmp, "reset") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9243: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9260: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9261: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9262: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9264: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9265: break: Breaking from switch >libvirt-0.10.2/src/conf/domain_conf.c:9292: switch_end: Reached end of switch >libvirt-0.10.2/src/conf/domain_conf.c:9294: cond_false: Condition "(n = virXPathNodeSet("./clock/timer", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9296: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9297: cond_false: Condition "virAllocN(&def->clock.timers, 8UL /* sizeof (*def->clock.timers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9302: cond_false: Condition "!timer", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9299: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9306: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9307: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9313: cond_false: Condition "!def->os.type", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9324: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "__coverity_strcmp(def->os.type, "linux") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9330: cond_true: Condition "def->virtType == VIR_DOMAIN_VIRT_XEN", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9332: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "(size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "(char const *)"xen"[0] == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_true: Condition "__retval != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9333: cond_false: Condition "!(def->os.type = ((1 && (size_t)(void const *)&"xen"[1] - (size_t)(void const *)"xen" == 1) ? ((char const *)"xen"[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup("xen")))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9335: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9338: cond_false: Condition "!virCapabilitiesSupportsGuestOSType(caps, def->os.type)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9342: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9345: cond_true: Condition "def->os.arch", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9346: cond_false: Condition "!virCapabilitiesSupportsGuestArch(caps, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9351: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9353: cond_false: Condition "!virCapabilitiesSupportsGuestOSTypeArch(caps, def->os.type, def->os.arch)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9360: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9361: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9372: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9375: cond_false: Condition "!def->os.machine", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9385: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9396: cond_true: Condition "__coverity_strcmp(def->os.type, "exe") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9398: cond_false: Condition "!def->os.init", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9409: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9412: cond_false: Condition "(n = virXPathNodeSet("./os/initarg", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9414: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9416: cond_false: Condition "virAllocN(&def->os.initargv, 8UL /* sizeof (*def->os.initargv) */, n + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9419: cond_false: Condition "!nodes[i]->children->content", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9424: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9425: cond_false: Condition "!(def->os.initargv[i] = ((0 && (size_t)(void const *)((char const *)nodes[i]->children->content + 1) - (size_t)(void const *)(char const *)nodes[i]->children->content == 1) ? ((char const *)(char const *)nodes[i]->children->content[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup((char const *)nodes[i]->children->content)))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9418: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9427: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9429: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9432: cond_true: Condition "__coverity_strcmp(def->os.type, "xen") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9442: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9443: cond_false: Condition "virDomainDefParseBootXML(ctxt, def, &bootMapSize) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_true: Condition "bootMapSize", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9445: cond_false: Condition "!(bootMap = virBitmapNew(bootMapSize))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9450: cond_false: Condition "!def->emulator", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9454: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9457: cond_false: Condition "(n = virXPathNodeSet("./devices/disk", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9460: cond_false: Condition "virAllocN(&def->disks, 8UL /* sizeof (*def->disks) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9471: cond_false: Condition "!disk", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9463: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9475: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9476: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9479: cond_false: Condition "(n = virXPathNodeSet("./devices/controller", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9482: cond_false: Condition "virAllocN(&def->controllers, 8UL /* sizeof (*def->controllers) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_true: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9493: cond_true: Condition "controller->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_other", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9494: cond_false: Condition "usb_none", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9499: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9501: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9509: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9488: cond_false: Condition "!controller", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9492: cond_false: Condition "controller->type == VIR_DOMAIN_CONTROLLER_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9510: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9485: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9513: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9514: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_QEMU", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_KQEMU", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9516: cond_false: Condition "def->virtType == VIR_DOMAIN_VIRT_KVM", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9523: cond_false: Condition "(n = virXPathNodeSet("./devices/lease", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9527: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9528: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9528: cond_false: Condition "virAllocN(&def->leases, 8UL /* sizeof (*def->leases) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9532: cond_false: Condition "!lease", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9532: cond_false: Condition "!lease", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9530: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9536: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9537: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9540: cond_false: Condition "(n = virXPathNodeSet("./devices/filesystem", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9542: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9543: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9543: cond_false: Condition "virAllocN(&def->fss, 8UL /* sizeof (*def->fss) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9548: cond_false: Condition "!fs", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9548: cond_false: Condition "!fs", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9545: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9552: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9553: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9556: cond_false: Condition "(n = virXPathNodeSet("./devices/interface", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9558: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9559: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9559: cond_false: Condition "virAllocN(&def->nets, 8UL /* sizeof (*def->nets) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9567: cond_false: Condition "!net", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_true: Condition "net->type == VIR_DOMAIN_NET_TYPE_HOSTDEV", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_false: Condition "virDomainHostdevInsert(def, &net->data.hostdev.def) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9576: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9567: cond_false: Condition "!net", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9573: cond_false: Condition "net->type == VIR_DOMAIN_NET_TYPE_HOSTDEV", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9576: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9561: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9577: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9578: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9582: cond_false: Condition "(n = virXPathNodeSet("./devices/smartcard", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9584: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9585: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9585: cond_false: Condition "virAllocN(&def->smartcards, 8UL /* sizeof (*def->smartcards) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9591: cond_false: Condition "!card", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9591: cond_false: Condition "!card", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9588: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9595: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9596: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9600: cond_false: Condition "(n = virXPathNodeSet("./devices/parallel", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9602: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9603: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9603: cond_false: Condition "virAllocN(&def->parallels, 8UL /* sizeof (*def->parallels) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9614: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9617: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9614: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9617: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9621: cond_true: Condition "def->parallels[j]->target.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9620: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9620: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9623: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9606: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9627: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9628: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9630: cond_false: Condition "(n = virXPathNodeSet("./devices/serial", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9633: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9633: cond_false: Condition "virAllocN(&def->serials, 8UL /* sizeof (*def->serials) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9644: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9647: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9644: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9647: cond_true: Condition "chr->target.port == -1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9651: cond_true: Condition "def->serials[j]->target.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9650: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9650: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9653: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9636: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9657: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9658: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9660: cond_false: Condition "(n = virXPathNodeSet("./devices/console", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9664: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9665: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9665: cond_false: Condition "virAllocN(&def->consoles, 8UL /* sizeof (*def->consoles) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9700: cond_false: Condition "i != 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9705: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9708: cond_true: Condition "def->nserials != 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9709: cond_true: Condition "virDomainChrSourceDefIsEqual(&def->serials[0]->source, &chr->source)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9713: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9715: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9716: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9725: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9727: cond_false: Condition "create_stub", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9733: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_false: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9734: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9677: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9698: cond_false: Condition "chr->targetType == VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9734: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9668: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9739: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9740: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9742: cond_false: Condition "(n = virXPathNodeSet("./devices/channel", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9744: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9745: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9745: cond_false: Condition "virAllocN(&def->channels, 8UL /* sizeof (*def->channels) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.addr.vioserial.port == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.addr.vioserial.port == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.addr.vioserial.controller == chr->info.addr.vioserial.controller", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "thischr->info.addr.vioserial.bus == chr->info.addr.vioserial.bus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9772: cond_true: Condition "(int)thischr->info.addr.vioserial.port > maxport", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9770: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9770: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9777: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9756: cond_false: Condition "!chr", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9761: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_true: Condition "chr->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_SERIAL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9766: cond_false: Condition "chr->info.addr.vioserial.port == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9779: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9748: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9785: cond_false: Condition "(n = virXPathNodeSet("./devices/input", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9787: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9788: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9788: cond_false: Condition "virAllocN(&def->inputs, 8UL /* sizeof (*def->inputs) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9795: cond_false: Condition "!input", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9799: cond_false: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9804: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_PS2", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->type == VIR_DOMAIN_INPUT_TYPE_MOUSE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9816: continue: Continuing loop >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9795: cond_false: Condition "!input", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9799: cond_false: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9804: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->bus == VIR_DOMAIN_INPUT_BUS_PS2", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9809: cond_true: Condition "input->type == VIR_DOMAIN_INPUT_TYPE_MOUSE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9816: continue: Continuing loop >libvirt-0.10.2/src/conf/domain_conf.c:9791: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9821: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9824: cond_false: Condition "(n = virXPathNodeSet("./devices/graphics", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9826: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9827: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9827: cond_false: Condition "virAllocN(&def->graphics, 8UL /* sizeof (*def->graphics) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9829: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9833: cond_false: Condition "!graphics", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9837: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9829: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9829: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9837: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9838: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9841: cond_true: Condition "def->ngraphics > 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9844: cond_false: Condition "virAlloc(&input, 80UL /* sizeof (*input) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9846: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9847: cond_true: Condition "__coverity_strcmp(def->os.type, "hvm") == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9850: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9853: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9855: cond_false: Condition "virReallocN(&def->inputs, 8UL /* sizeof (*def->inputs) */, def->ninputs + 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9858: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9865: cond_false: Condition "(n = virXPathNodeSet("./devices/sound", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9867: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9868: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9868: cond_false: Condition "virAllocN(&def->sounds, 8UL /* sizeof (*def->sounds) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9874: cond_false: Condition "!sound", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9874: cond_false: Condition "!sound", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9870: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9878: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9879: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9882: cond_false: Condition "(n = virXPathNodeSet("./devices/video", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9884: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9885: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9885: cond_false: Condition "virAllocN(&def->videos, 8UL /* sizeof (*def->videos) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9891: cond_false: Condition "!video", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9891: cond_false: Condition "!video", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9887: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9894: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9895: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9899: cond_true: Condition "def->ngraphics", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9899: cond_true: Condition "!def->nvideos", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9901: cond_false: Condition "virAlloc(&video, 96UL /* sizeof (*video) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9904: cond_false: Condition "video->type < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9909: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9912: cond_false: Condition "virAllocN(&def->videos, 8UL /* sizeof (*def->videos) */, 1) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9915: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9920: cond_false: Condition "(n = virXPathNodeSet("./devices/hostdev", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9922: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9923: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9923: cond_false: Condition "virReallocN(&def->hostdevs, 8UL /* sizeof (*def->hostdevs) */, def->nhostdevs + n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9925: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9929: cond_false: Condition "!hostdev", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9932: cond_false: Condition "hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9938: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9941: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9925: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9925: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9929: cond_false: Condition "!hostdev", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9932: cond_false: Condition "hostdev->source.subsys.type == VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9938: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9941: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:9925: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:9925: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9941: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:9942: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9946: cond_false: Condition "(n = virXPathNodeSet("./devices/watchdog", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9948: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9949: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9953: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9954: cond_true: Condition "n > 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9957: cond_false: Condition "!watchdog", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9961: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9966: cond_false: Condition "(n = virXPathNodeSet("./devices/memballoon", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9968: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9969: cond_false: Condition "n > 1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9973: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9974: cond_true: Condition "n > 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9977: cond_false: Condition "!memballoon", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:9981: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:9982: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:9999: cond_false: Condition "(n = virXPathNodeSet("./devices/hub", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10001: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:10002: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10002: cond_false: Condition "virAllocN(&def->hubs, 8UL /* sizeof (*def->hubs) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10004: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10006: cond_false: Condition "!hub", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10009: cond_false: Condition "hub->type == VIR_DOMAIN_HUB_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10014: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:10017: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:10004: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:10004: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10006: cond_false: Condition "!hub", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10009: cond_false: Condition "hub->type == VIR_DOMAIN_HUB_TYPE_USB", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10014: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:10017: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:10004: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:10004: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10017: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:10018: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10021: cond_false: Condition "(n = virXPathNodeSet("./devices/redirdev", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10023: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:10024: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10024: cond_false: Condition "virAllocN(&def->redirdevs, 8UL /* sizeof (*def->redirdevs) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10026: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10027: alloc_fn: Storage is returned from allocation function "virDomainRedirdevDefParseXML(xmlNodePtr const, unsigned int)". >libvirt-0.10.2/src/conf/domain_conf.c:7333:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "def". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7333:5: cond_false: Condition "virAlloc(&def, 120UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7336:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7339:5: cond_true: Condition "bus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7340:9: cond_false: Condition "(def->bus = virDomainRedirdevBusTypeFromString(bus)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7344:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7345:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7347:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7350:5: cond_true: Condition "type", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7351:9: cond_false: Condition "(def->source.chr.type = virDomainChrTypeFromString(type)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7355:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7356:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7360:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7363:5: cond_true: Condition "cur != NULL", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7364:9: cond_true: Condition "cur->type == XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7365:13: cond_true: Condition "xmlStrEqual(cur->name, (xmlChar *)"source")", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7370:17: cond_false: Condition "remaining != 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7375:5: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:7363:5: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:7363:5: cond_false: Condition "cur != NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7375:5: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:7377:5: cond_false: Condition "def->source.chr.type == VIR_DOMAIN_CHR_TYPE_SPICEVMC", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7379:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7381:5: cond_false: Condition "virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7384:5: cond_true: Condition "def->bus == VIR_DOMAIN_REDIRDEV_BUS_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7384:5: cond_false: Condition "def->info.type != VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:7390:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:7394:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7395:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:7396:5: return_alloc: Returning allocated memory "def". >libvirt-0.10.2/src/conf/domain_conf.c:10027: var_assign: Assigning: "redirdev" = storage returned from "virDomainRedirdevDefParseXML(nodes[i], flags)". >libvirt-0.10.2/src/conf/domain_conf.c:10029: cond_false: Condition "!redirdev", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:10032: cond_true: Condition "redirdev->bus == VIR_DOMAIN_REDIRDEV_BUS_USB", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10032: cond_true: Condition "usb_none", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:10036: goto: Jumping to label "error" >libvirt-0.10.2/src/conf/domain_conf.c:10036: leaked_storage: Variable "redirdev" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:8598: cond_false: Condition "virAlloc(&def, 840UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8601: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8603: cond_true: Condition "!(flags & VIR_DOMAIN_XML_INACTIVE)", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8604: cond_true: Condition "virXPathLong("string(./@id)", ctxt, &id) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8609: cond_false: Condition "!(tmp = virXPathString("string(./@type)", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8613: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8615: cond_false: Condition "(def->virtType = virDomainVirtTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8619: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8620: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8622: cond_false: Condition "(expectedVirtTypes & (1 << def->virtType)) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8659: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8662: cond_false: Condition "!(def->name = virXPathString("string(./name[1])", ctxt))", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8665: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8671: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8678: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8679: cond_false: Condition "virUUIDParse(tmp, def->uuid) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8683: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8684: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_true: Condition "def->title", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8689: cond_false: Condition "__coverity_strchr(def->title, 10)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8693: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8700: cond_false: Condition "virSecurityLabelDefsParseXML(def, ctxt, caps, flags) == -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8704: cond_false: Condition "virDomainParseMemory("./memory[1]", ctxt, &def->mem.max_balloon, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8708: cond_false: Condition "virDomainParseMemory("./currentMemory[1]", ctxt, &def->mem.cur_balloon, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8714: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8717: cond_false: Condition "def->mem.dump_core <= 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8720: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8721: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8724: cond_true: Condition "def->mem.cur_balloon > def->mem.max_balloon", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8728: cond_false: Condition "(def->mem.cur_balloon + 4096 - 1) / 4096 > (def->mem.max_balloon + 4096 - 1) / 4096", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8735: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8740: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8745: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8749: cond_false: Condition "node", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8753: cond_false: Condition "virXPathUInt("string(./blkiotune/weight)", ctxt, &def->blkio.weight) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8757: cond_false: Condition "(n = virXPathNodeSet("./blkiotune/device", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8761: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8762: cond_false: Condition "virAllocN(&def->blkio.devices, 16UL /* sizeof (*def->blkio.devices) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8767: cond_false: Condition "virDomainBlkioDeviceWeightParseXML(nodes[i], def->blkio.devices + i) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_true: Condition "j < i", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8772: cond_false: Condition "__coverity_strcmp((def->blkio.devices + j).path, (def->blkio.devices + i).path) == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8778: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8771: cond_false: Condition "j < i", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8779: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/domain_conf.c:8765: cond_false: Condition "i < n", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8780: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/domain_conf.c:8781: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8784: cond_false: Condition "virDomainParseMemory("./memtune/hard_limit[1]", ctxt, &def->mem.hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8788: cond_false: Condition "virDomainParseMemory("./memtune/soft_limit[1]", ctxt, &def->mem.soft_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8792: cond_false: Condition "virDomainParseMemory("./memtune/min_guarantee[1]", ctxt, &def->mem.min_guarantee, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8796: cond_false: Condition "virDomainParseMemory("./memtune/swap_hard_limit[1]", ctxt, &def->mem.swap_hard_limit, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8801: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8805: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8807: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8809: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8813: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8817: cond_false: Condition "n == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8821: cond_false: Condition "n < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8823: else_branch: Reached else branch >libvirt-0.10.2/src/conf/domain_conf.c:8825: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8829: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8831: cond_false: Condition "def->maxvcpus < count", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8836: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8840: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8841: cond_false: Condition "(def->placement_mode = virDomainCpuPlacementModeTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8847: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8848: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8849: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8851: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8853: cond_true: Condition "def->placement_mode != VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8855: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8856: cond_false: Condition "virBitmapParse(tmp, 0, &def->cpumask, 1024) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8861: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8862: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8867: cond_true: Condition "virXPathULong("string(./cputune/shares[1])", ctxt, &def->cputune.shares) < 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8871: cond_false: Condition "virXPathULongLong("string(./cputune/period[1])", ctxt, &def->cputune.period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8875: cond_false: Condition "virXPathLongLong("string(./cputune/quota[1])", ctxt, &def->cputune.quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8879: cond_false: Condition "virXPathULongLong("string(./cputune/emulator_period[1])", ctxt, &def->cputune.emulator_period) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8883: cond_false: Condition "virXPathLongLong("string(./cputune/emulator_quota[1])", ctxt, &def->cputune.emulator_quota) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8887: cond_false: Condition "(n = virXPathNodeSet("./cputune/vcpupin", ctxt, &nodes)) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8889: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_true: Condition "n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8891: cond_false: Condition "virAllocN(&def->cputune.vcpupin, 8UL /* sizeof (*def->cputune.vcpupin) */, n) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8894: cond_false: Condition "n > def->maxvcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8898: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8900: cond_true: Condition "i < n", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8902: alloc_fn: Storage is returned from allocation function "virDomainVcpuPinDefParseXML(xmlNodePtr const, xmlXPathContextPtr, int, int)". >libvirt-0.10.2/src/conf/domain_conf.c:8430:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "def". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8430:5: cond_false: Condition "virAlloc(&def, 16UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8433:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8437:5: cond_true: Condition "emulator == 0", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8439:9: cond_false: Condition "ret == -2", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8439:9: cond_false: Condition "vcpuid < -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8443:16: cond_false: Condition "vcpuid == -1", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8447:9: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8450:5: cond_false: Condition "vcpuid >= maxvcpus", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8454:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8460:5: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8464:9: cond_false: Condition "virBitmapParse(set, 0, &def->cpumask, cpumasklen) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8467:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8468:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8472:5: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8476:5: return_alloc: Returning allocated memory "def". >libvirt-0.10.2/src/conf/domain_conf.c:8902: var_assign: Assigning: "vcpupin" = storage returned from "virDomainVcpuPinDefParseXML(nodes[i], ctxt, def->maxvcpus, 0)". >libvirt-0.10.2/src/conf/domain_conf.c:8904: cond_false: Condition "!vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8907: cond_false: Condition "virDomainVcpuPinIsDuplicate(def->cputune.vcpupin, def->cputune.nvcpupin, vcpupin->vcpuid)", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:8914: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:8916: cond_true: Condition "vcpupin->vcpuid >= def->vcpus", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:8925: leaked_storage: Variable "vcpupin" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/util/pci.c:2203: alloc_arg: "pciGetPhysicalFunction(char const *, struct pci_config_address **)" allocates memory that is stored into "pf_config_address". >libvirt-0.10.2/src/util/pci.c:1970:5: cond_false: Condition "virBuildPathInternal(&device_link, vf_sysfs_path, "physfn", NULL) == -1", taking false branch >libvirt-0.10.2/src/util/pci.c:1973:12: else_branch: Reached else branch >libvirt-0.10.2/src/util/pci.c:1974:9: alloc_arg: "pciGetPciConfigAddressFromSysfsDeviceLink(char const *, struct pci_config_address **)" allocates memory that is stored into "*physical_function". >libvirt-0.10.2/src/util/pci.c:1914:5: cond_false: Condition "!virFileExists(device_link)", taking false branch >libvirt-0.10.2/src/util/pci.c:1917:5: if_end: End of if statement >libvirt-0.10.2/src/util/pci.c:1920:5: cond_false: Condition "device_path == NULL", taking false branch >libvirt-0.10.2/src/util/pci.c:1927:5: if_end: End of if statement >libvirt-0.10.2/src/util/pci.c:1930:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*bdf". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/pci.c:1930:5: cond_false: Condition "virAlloc(bdf, 16UL /* sizeof (**bdf) */) != 0", taking false branch >libvirt-0.10.2/src/util/pci.c:1933:5: if_end: End of if statement >libvirt-0.10.2/src/util/pci.c:1935:5: noescape: Resource "*bdf" is not freed or pointed-to in function "pciParsePciConfigAddress(char *, struct pci_config_address *)". >libvirt-0.10.2/src/util/pci.c:1871:53: noescape: "pciParsePciConfigAddress(char *, struct pci_config_address *)" does not free or save its pointer parameter "bdf". >libvirt-0.10.2/src/util/pci.c:1935:5: cond_true: Condition "pciParsePciConfigAddress(config_address, *bdf) != 0", taking true branch >libvirt-0.10.2/src/util/pci.c:1939:9: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/pci.c:1940:9: goto: Jumping to label "out" >libvirt-0.10.2/src/util/pci.c:1951:1: label: Reached label "out" >libvirt-0.10.2/src/util/pci.c:1952:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/pci.c:1978:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/pci.c:2203: cond_true: Condition "pciGetPhysicalFunction(vf_sysfs_device_path, &pf_config_address) < 0", taking true branch >libvirt-0.10.2/src/util/pci.c:2204: leaked_storage: Variable "pf_config_address" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: cond_false: Condition "esxVI_ChoiceOption_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"valueIsReadonly")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"choiceInfo")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: alloc_arg: "esxVI_ElementDescription_Deserialize(xmlNodePtr, esxVI_ElementDescription **)" allocates memory that is stored into "choiceInfoItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: alloc_arg: "esxVI_ElementDescription_Alloc(esxVI_ElementDescription **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:693:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:693:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 40UL /* sizeof (esxVI_ElementDescription) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:693:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: cond_false: Condition "esxVI_ElementDescription_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:726:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: cond_true: Condition "esxVI_ElementDescription_Deserialize(childNode, &choiceInfoItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:414: leaked_storage: Variable "choiceInfoItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_false: Condition "specSet == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_false: Condition "esxVI_PropertyFilterSpec_SerializeList(specSet, "specSet", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_OptionalList) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:578: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_false: Condition "esxVI_ObjectUpdate_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"kind")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"obj")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"changeSet")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: alloc_arg: "esxVI_PropertyChange_Deserialize(xmlNodePtr, esxVI_PropertyChange **)" allocates memory that is stored into "changeSetItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: alloc_arg: "esxVI_PropertyChange_Alloc(esxVI_PropertyChange **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3692:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3692:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 40UL /* sizeof (esxVI_PropertyChange) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3692:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: cond_false: Condition "esxVI_PropertyChange_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3714:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: cond_true: Condition "esxVI_PropertyChange_Deserialize(childNode, &changeSetItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083: leaked_storage: Variable "changeSetItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/network_conf.c:1235: cond_false: Condition "virAlloc(&def, 184UL /* sizeof (*def) */) < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1238: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1242: cond_false: Condition "!def->name", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1245: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1249: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1255: else_branch: Reached else branch >libvirt-0.10.2/src/conf/network_conf.c:1256: cond_false: Condition "virUUIDParse(tmp, def->uuid) < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1261: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1262: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1269: cond_false: Condition "(bandwidthNode = virXPathNode("./bandwidth", ctxt)) != NULL", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1274: cond_false: Condition "vlanNode", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1281: cond_true: Condition "virXPathULong("string(./bridge[1]/@delay)", ctxt, &def->delay) < 0", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1285: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1286: cond_false: Condition "virMacAddrParse(tmp, &def->mac) < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1292: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1293: cond_false: Condition "virMacAddrIsMulticast(&def->mac)", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1299: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1300: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1305: cond_false: Condition "dnsNode != NULL", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1308: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1311: cond_false: Condition "virtPortNode", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1315: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1318: cond_false: Condition "nPortGroups < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1321: cond_true: Condition "nPortGroups > 0", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1325: cond_false: Condition "virAllocN(&def->portGroups, 48UL /* sizeof (*def->portGroups) */, nPortGroups) < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1328: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1330: cond_true: Condition "ii < nPortGroups", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1333: cond_false: Condition "ret < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1336: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/network_conf.c:1330: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/network_conf.c:1330: cond_true: Condition "ii < nPortGroups", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1333: cond_false: Condition "ret < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1336: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/network_conf.c:1330: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/network_conf.c:1330: cond_false: Condition "ii < nPortGroups", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1336: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/network_conf.c:1338: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1341: cond_false: Condition "nIps < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1344: cond_true: Condition "nIps > 0", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1348: cond_false: Condition "virAllocN(&def->ips, 472UL /* sizeof (*def->ips) */, nIps) < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1351: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1353: cond_true: Condition "ii < nIps", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1356: cond_false: Condition "ret < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1359: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/conf/network_conf.c:1353: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/conf/network_conf.c:1353: cond_false: Condition "ii < nIps", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1359: loop_end: Reached end of loop >libvirt-0.10.2/src/conf/network_conf.c:1361: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1364: cond_false: Condition "!forwardNode", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1367: else_branch: Reached else branch >libvirt-0.10.2/src/conf/network_conf.c:1370: cond_true: Condition "tmp", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1371: cond_false: Condition "(def->forwardType = virNetworkForwardTypeFromString(tmp)) < 0", taking false branch >libvirt-0.10.2/src/conf/network_conf.c:1376: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1377: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1378: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/conf/network_conf.c:1380: if_end: End of if statement >libvirt-0.10.2/src/conf/network_conf.c:1384: cond_true: Condition "forwardManaged != NULL", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1385: cond_true: Condition "c_strcasecmp(forwardManaged, "yes") == 0", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1392: alloc_arg: "virXPathNodeSet(char const *, xmlXPathContextPtr, xmlNodePtr **)" allocates memory that is stored into "forwardAddrNodes". >libvirt-0.10.2/src/util/xml.c:572:5: cond_false: Condition "ctxt == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:572:5: cond_false: Condition "xpath == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:576:5: if_end: End of if statement >libvirt-0.10.2/src/util/xml.c:578:5: cond_true: Condition "list != NULL", taking true branch >libvirt-0.10.2/src/util/xml.c:584:5: cond_false: Condition "obj == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:587:5: cond_false: Condition "obj->type != XPATH_NODESET", taking false branch >libvirt-0.10.2/src/util/xml.c:592:5: if_end: End of if statement >libvirt-0.10.2/src/util/xml.c:594:5: cond_false: Condition "obj->nodesetval == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:594:5: cond_false: Condition "obj->nodesetval->nodeNr < 0", taking false branch >libvirt-0.10.2/src/util/xml.c:597:5: if_end: End of if statement >libvirt-0.10.2/src/util/xml.c:600:5: cond_true: Condition "list != NULL", taking true branch >libvirt-0.10.2/src/util/xml.c:600:5: cond_true: Condition "ret", taking true branch >libvirt-0.10.2/src/util/xml.c:601:9: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*list". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/xml.c:601:9: cond_false: Condition "virAllocN(list, 8UL /* sizeof (**list) */, ret) < 0", taking false branch >libvirt-0.10.2/src/util/xml.c:604:16: else_branch: Reached else branch >libvirt-0.10.2/src/util/xml.c:605:13: noescape: Resource "*list" is not freed or pointed-to in function "memcpy(void * restrict, void const * restrict, size_t)". >libvirt-0.10.2/src/conf/network_conf.c:1394: cond_true: Condition "nForwardIfs < 0", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1397: goto: Jumping to label "error" >libvirt-0.10.2/src/conf/network_conf.c:1586: label: Reached label "error" >libvirt-0.10.2/src/conf/network_conf.c:1587: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1589: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1590: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1591: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1592: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1593: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/conf/network_conf.c:1595: leaked_storage: Variable "forwardAddrNodes" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_command.c:160: cond_false: Condition "qemuCapsGet(caps, QEMU_CAPS_VNET_HDR)", taking false branch >libvirt-0.10.2/src/qemu/qemu_command.c:164: open_fn: Returning handle opened by function "virNetDevMacVLanCreateWithVPortProfile(char const *, virMacAddrPtr const, char const *, enum virNetDevMacVLanMode, bool, int, unsigned char const *, virNetDevVPortProfilePtr, char **, enum virNetDevVPortProfileOp, char *, virNetDevBandwidthPtr)". >libvirt-0.10.2/src/util/virnetdevmacvlan.c:849:5: cond_true: Condition "mode == VIR_NETDEV_MACVLAN_MODE_PASSTHRU", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:850:9: cond_false: Condition "virNetDevReplaceMacAddress(linkdev, macaddress, stateDir) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:854:5: cond_true: Condition "tgifname", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:855:9: cond_false: Condition "(ret = virNetDevExists(tgifname)) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:858:9: cond_true: Condition "ret", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:859:13: cond_true: Condition "__coverity_strncmp(tgifname, prefix, strlen(prefix)) == 0", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:860:17: goto: Jumping to label "create_name" >libvirt-0.10.2/src/util/virnetdevmacvlan.c:872:1: label: Reached label "create_name" >libvirt-0.10.2/src/util/virnetdevmacvlan.c:874:9: cond_true: Condition "c < 8192", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:876:13: cond_false: Condition "(ret = virNetDevExists(ifname)) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:878:13: cond_false: Condition "!ret", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:887:13: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:888:9: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/util/virnetdevmacvlan.c:874:9: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/util/virnetdevmacvlan.c:874:9: cond_true: Condition "c < 8192", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:876:13: cond_false: Condition "(ret = virNetDevExists(ifname)) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:878:13: cond_false: Condition "!ret", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:887:13: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:888:9: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/util/virnetdevmacvlan.c:874:9: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/util/virnetdevmacvlan.c:874:9: cond_false: Condition "c < 8192", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:888:9: loop_end: Reached end of loop >libvirt-0.10.2/src/util/virnetdevmacvlan.c:892:5: cond_false: Condition "virNetDevVPortProfileAssociate(cr_ifname, virtPortProfile, macaddress, linkdev, vf, vmuuid, vmOp, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:900:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:902:5: cond_false: Condition "virNetDevSetOnline(cr_ifname, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:905:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:907:5: cond_true: Condition "withTap", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:908:9: open_fn: Returning handle opened by function "virNetDevMacVLanTapOpen(char const *, int)". >libvirt-0.10.2/src/util/virnetdevmacvlan.c:308:5: cond_false: Condition "snprintf(path, 64UL /* sizeof (path) */, "/sys/class/net/%s/ifindex", ifname) >= 64UL /* sizeof (path) */", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:314:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:318:5: cond_false: Condition "!file", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:323:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:325:5: cond_false: Condition "fscanf(file, "%d", &ifindex) != 1", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:331:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:335:5: cond_false: Condition "snprintf(tapname, 50UL /* sizeof (tapname) */, "/dev/tap%d", ifindex) >= 50UL /* sizeof (tapname) */", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:341:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:343:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:346:9: cond_true: Condition "tapfd < 0", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:346:9: cond_true: Condition "retries > 0", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:349:13: continue: Continuing loop >libvirt-0.10.2/src/util/virnetdevmacvlan.c:352:5: loop: Looping back >libvirt-0.10.2/src/util/virnetdevmacvlan.c:343:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:345:9: open_fn: Returning handle opened by function "open(char const *, int, ...)". >libvirt-0.10.2/src/util/virnetdevmacvlan.c:345:9: var_assign: Assigning: "tapfd" = "open(tapname, 2)". >libvirt-0.10.2/src/util/virnetdevmacvlan.c:346:9: cond_false: Condition "tapfd < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:350:9: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:351:9: break: Breaking from loop >libvirt-0.10.2/src/util/virnetdevmacvlan.c:352:5: loop_end: Reached end of loop >libvirt-0.10.2/src/util/virnetdevmacvlan.c:354:5: cond_false: Condition "tapfd < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:359:5: return_handle: Returning opened handle "tapfd". >libvirt-0.10.2/src/util/virnetdevmacvlan.c:908:9: var_assign: Assigning: "rc" = "virNetDevMacVLanTapOpen(cr_ifname, 10)". >libvirt-0.10.2/src/util/virnetdevmacvlan.c:908:9: cond_false: Condition "(rc = virNetDevMacVLanTapOpen(cr_ifname, 10)) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:911:9: noescape: Resource "rc" is not freed or pointed-to in function "virNetDevMacVLanTapSetup(int, int)". >libvirt-0.10.2/src/util/virnetdevmacvlan.c:378:30: noescape: "virNetDevMacVLanTapSetup(int, int)" does not free or save its handle parameter "tapfd". >libvirt-0.10.2/src/util/virnetdevmacvlan.c:911:9: cond_false: Condition "virNetDevMacVLanTapSetup(rc, vnet_hdr) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:914:9: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:915:9: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:915:9: cond_false: Condition "!(*res_ifname = ((0 && (size_t)(void const *)(cr_ifname + 1) - (size_t)(void const *)cr_ifname == 1) ? ((char const *)cr_ifname[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(cr_ifname)))", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:919:9: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:920:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:926:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:928:5: cond_false: Condition "virNetDevBandwidthSet(cr_ifname, bandwidth) < 0", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:937:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:939:5: cond_false: Condition "vmOp == VIR_NETDEV_VPORT_PROFILE_OP_CREATE", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:939:5: cond_false: Condition "vmOp == VIR_NETDEV_VPORT_PROFILE_OP_RESTORE", taking false branch >libvirt-0.10.2/src/util/virnetdevmacvlan.c:950:5: if_end: End of if statement >libvirt-0.10.2/src/util/virnetdevmacvlan.c:952:5: return_handle: Returning opened handle "rc". >libvirt-0.10.2/src/qemu/qemu_command.c:164: var_assign: Assigning: "rc" = handle returned from "virNetDevMacVLanCreateWithVPortProfile(net->ifname, &net->mac, virDomainNetGetActualDirectDev(net), virDomainNetGetActualDirectMode(net), true, vnet_hdr, def->uuid, virDomainNetGetActualVirtPortProfile(net), &res_ifname, vmop, driver->stateDir, virDomainNetGetActualBandwidth(net))". >libvirt-0.10.2/src/qemu/qemu_command.c:173: cond_true: Condition "rc >= 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_command.c:174: noescape: Resource "rc" is not freed or pointed-to in function "virSecurityManagerSetTapFDLabel(virSecurityManagerPtr, virDomainDefPtr, int)". >libvirt-0.10.2/src/security/security_manager.c:474:41: noescape: "virSecurityManagerSetTapFDLabel(virSecurityManagerPtr, virDomainDefPtr, int)" does not free or save its handle parameter "fd". >libvirt-0.10.2/src/qemu/qemu_command.c:174: cond_true: Condition "virSecurityManagerSetTapFDLabel(driver->securityManager, def, rc) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_command.c:176: goto: Jumping to label "error" >libvirt-0.10.2/src/qemu/qemu_command.c:185: label: Reached label "error" >libvirt-0.10.2/src/qemu/qemu_command.c:192: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_command.c:193: leaked_handle: Handle variable "rc" going out of scope leaks the handle. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "esxVI_VmDiskFileInfo_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"path")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"fileSize")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"modification")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"diskType")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"capacityKb")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"hardwareVersion")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"controllerType")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"diskExtents")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: alloc_arg: "esxVI_String_Deserialize(xmlNodePtr, esxVI_String **)" allocates memory that is stored into "diskExtentsItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "string == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "*string != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1298:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "*string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_Alloc(string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_DeserializeValue(node, &(*string)->value) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1303:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: cond_true: Condition "esxVI_String_Deserialize(childNode, &diskExtentsItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4931: leaked_storage: Variable "diskExtentsItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_false: Condition "questionId == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_false: Condition "answerChoice == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_false: Condition "esxVI_String_SerializeValue(questionId, "questionId", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_false: Condition "esxVI_String_SerializeValue(answerChoice, "answerChoice", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:42: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "uuid == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "vmSearch == 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(datacenter, "datacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "esxVI_String_SerializeValue(uuid, "uuid", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "esxVI_Boolean_Serialize(vmSearch, "vmSearch", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_OptionalItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:227: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: cond_false: Condition "esxVI_PropertyFilterUpdate_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"filter")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"objectSet")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: alloc_arg: "esxVI_ObjectUpdate_Deserialize(xmlNodePtr, esxVI_ObjectUpdate **)" allocates memory that is stored into "objectSetItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: alloc_arg: "esxVI_ObjectUpdate_Alloc(esxVI_ObjectUpdate **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3059:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3059:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_ObjectUpdate) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3059:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: cond_false: Condition "esxVI_ObjectUpdate_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3083:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: cond_true: Condition "esxVI_ObjectUpdate_Deserialize(childNode, &objectSetItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792: leaked_storage: Variable "objectSetItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:2043: cond_false: Condition "objectContentList == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2043: cond_false: Condition "*objectContentList != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2046: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2048: alloc_arg: "esxVI_ObjectSpec_Alloc(esxVI_ObjectSpec **)" allocates memory that is stored into "objectSpec". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3021:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3021:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 40UL /* sizeof (esxVI_ObjectSpec) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3021:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2048: cond_false: Condition "esxVI_ObjectSpec_Alloc(&objectSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2050: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2055: cond_true: Condition "__coverity_strcmp(root->type, type) != 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2056: cond_true: Condition "__coverity_strcmp(root->type, "Folder") == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2057: cond_true: Condition "__coverity_strcmp(type, "Folder") == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2061: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2066: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2067: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2109: cond_true: Condition "esxVI_PropertySpec_Alloc(&propertySpec) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2110: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:2166: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:2171: cond_true: Condition "objectSpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2176: cond_true: Condition "propertySpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2181: cond_true: Condition "!objectSpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2185: cond_true: Condition "!propertySpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2191: leaked_storage: Variable "objectSpec" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:2043: cond_false: Condition "objectContentList == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2043: cond_false: Condition "*objectContentList != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2046: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2048: cond_false: Condition "esxVI_ObjectSpec_Alloc(&objectSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2050: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2055: cond_true: Condition "__coverity_strcmp(root->type, type) != 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2056: cond_true: Condition "__coverity_strcmp(root->type, "Folder") == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2057: cond_true: Condition "__coverity_strcmp(type, "Folder") == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2061: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2066: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2067: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2109: cond_false: Condition "esxVI_PropertySpec_Alloc(&propertySpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2111: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2116: alloc_arg: "esxVI_PropertyFilterSpec_Alloc(esxVI_PropertyFilterSpec **)" allocates memory that is stored into "propertyFilterSpec". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3731:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3731:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_PropertyFilterSpec) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3731:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2116: cond_false: Condition "esxVI_PropertyFilterSpec_Alloc(&propertyFilterSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2116: cond_false: Condition "esxVI_PropertySpec_AppendToList(&propertyFilterSpec->propSet, propertySpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2120: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2124: cond_true: Condition "esxVI_ObjectSpec_AppendToList(&propertyFilterSpec->objectSet, objectSpec) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2126: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:2166: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:2171: cond_true: Condition "objectSpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2176: cond_true: Condition "propertySpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2181: cond_true: Condition "!objectSpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2185: cond_false: Condition "!propertySpec_isAppended", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2187: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2191: leaked_storage: Variable "propertyFilterSpec" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:2043: cond_false: Condition "objectContentList == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2043: cond_false: Condition "*objectContentList != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2046: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2048: cond_false: Condition "esxVI_ObjectSpec_Alloc(&objectSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2050: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2055: cond_true: Condition "__coverity_strcmp(root->type, type) != 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2056: cond_true: Condition "__coverity_strcmp(root->type, "Folder") == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2057: cond_true: Condition "__coverity_strcmp(type, "Folder") == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2061: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2066: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2067: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2109: alloc_arg: "esxVI_PropertySpec_Alloc(esxVI_PropertySpec **)" allocates memory that is stored into "propertySpec". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3809:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3809:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 40UL /* sizeof (esxVI_PropertySpec) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3809:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2109: cond_false: Condition "esxVI_PropertySpec_Alloc(&propertySpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:2111: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:2116: cond_true: Condition "esxVI_PropertyFilterSpec_Alloc(&propertyFilterSpec) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2119: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:2166: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:2171: cond_true: Condition "objectSpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2176: cond_true: Condition "propertySpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2181: cond_true: Condition "!objectSpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2185: cond_true: Condition "!propertySpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:2191: leaked_storage: Variable "propertySpec" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "esxVI_TaskInfo_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"key")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"task")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"name")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"descriptionId")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"entity")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"entityName")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"locked")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: alloc_arg: "esxVI_ManagedObjectReference_Deserialize(xmlNodePtr, esxVI_ManagedObjectReference **)" allocates memory that is stored into "lockedItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1773:5: cond_false: Condition "managedObjectReference == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1773:5: cond_false: Condition "*managedObjectReference != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1776:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1778:5: alloc_arg: "esxVI_ManagedObjectReference_Alloc(esxVI_ManagedObjectReference **)" allocates memory that is stored into "*managedObjectReference". >libvirt-0.10.2/src/esx/esx_vi_types.c:1711:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1711:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_ManagedObjectReference) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1711:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1778:5: cond_false: Condition "esxVI_ManagedObjectReference_Alloc(managedObjectReference) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1780:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1785:5: cond_true: Condition "(*managedObjectReference)->type == NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1788:9: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.c:1798:3: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: cond_true: Condition "esxVI_ManagedObjectReference_Deserialize(childNode, &lockedItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4135: leaked_storage: Variable "lockedItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:748: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:751: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:752: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:758: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:760: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:762: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:748: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:751: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:752: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:753: cond_true: Condition "!quiet", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:757: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:203: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:206: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:207: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:212: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:214: cond_false: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:300: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:302: cond_true: Condition "vm->def->blkio.weight != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:303: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_BLKIO)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:304: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupSetBlkioWeight(virCgroupPtr, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:1119:42: noescape: "virCgroupSetBlkioWeight(virCgroupPtr, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:305: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:309: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:436: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:437: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:438: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:441: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:203: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:206: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:207: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:212: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:214: cond_false: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:300: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:302: cond_false: Condition "vm->def->blkio.weight != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:316: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:318: cond_true: Condition "vm->def->blkio.ndevices", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:319: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_BLKIO)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:320: cond_true: Condition "i < vm->def->blkio.ndevices", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:322: cond_true: Condition "!dw->weight", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:323: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:320: cond_true: Condition "i < vm->def->blkio.ndevices", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:322: cond_true: Condition "!dw->weight", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:323: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:320: cond_false: Condition "i < vm->def->blkio.ndevices", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:334: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:338: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:341: cond_false: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_MEMORY)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:382: cond_true: Condition "vm->def->mem.hard_limit != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:387: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:389: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:391: cond_true: Condition "vm->def->cputune.shares != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:392: cond_false: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:400: else_branch: Reached else branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:406: cond_true: Condition "vm->def->numatune.memory.nodemask", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:406: cond_true: Condition "vm->def->numatune.memory.mode == VIR_DOMAIN_NUMATUNE_MEM_STRICT", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:406: cond_false: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPUSET)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:431: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:434: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: cond_false: Condition "esxVI_UpdateSet_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"version")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"filterSet")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: alloc_arg: "esxVI_PropertyFilterUpdate_Deserialize(xmlNodePtr, esxVI_PropertyFilterUpdate **)" allocates memory that is stored into "filterSetItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: alloc_arg: "esxVI_PropertyFilterUpdate_Alloc(esxVI_PropertyFilterUpdate **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3769:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3769:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_PropertyFilterUpdate) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3769:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: cond_false: Condition "esxVI_PropertyFilterUpdate_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3792:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: cond_true: Condition "esxVI_PropertyFilterUpdate_Deserialize(childNode, &filterSetItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4381: leaked_storage: Variable "filterSetItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.c:1172: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1172: cond_false: Condition "esxVI_String_Alloc(&string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1174: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1176: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1178: cond_true: Condition "string->value == NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1180: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.c:1189: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.c:1192: leaked_storage: Variable "string" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1083: cond_false: Condition "qemuCapsGet(priv->caps, QEMU_CAPS_DEVICE)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1088: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1090: cond_false: Condition "virReallocN(&vm->def->hostdevs, 8UL /* sizeof (*vm->def->hostdevs) */, vm->def->nhostdevs + 1) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1093: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1095: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1100: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1100: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1104: goto: Jumping to label "error" >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1104: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1083: cond_false: Condition "qemuCapsGet(priv->caps, QEMU_CAPS_DEVICE)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1088: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1090: cond_false: Condition "virReallocN(&vm->def->hostdevs, 8UL /* sizeof (*vm->def->hostdevs) */, vm->def->nhostdevs + 1) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1093: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1095: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1100: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1100: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1105: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1107: cond_true: Condition "(usb = usbGetDevice(hostdev->source.subsys.u.usb.bus, hostdev->source.subsys.u.usb.device)) == NULL", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1109: goto: Jumping to label "error" >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1109: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:659: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:661: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:664: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:665: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:670: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:672: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)". >libvirt-0.10.2/src/util/cgroup.c:1078:39: noescape: "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)" does not free or save its pointer parameter "driver". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:673: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:678: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_false: Condition "!qemuCgroupControllerActive(driver, i)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:683: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupMoveTask(virCgroupPtr, virCgroupPtr, int)". >libvirt-0.10.2/src/util/cgroup.c:873:36: noescape: "virCgroupMoveTask(virCgroupPtr, virCgroupPtr, int)" does not free or save its pointer parameter "src_group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:684: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:689: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:725: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:728: cond_true: Condition "cgroup_emulator", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:733: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:734: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:738: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:659: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:661: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:664: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:665: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:670: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:672: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)". >libvirt-0.10.2/src/util/cgroup.c:1078:39: noescape: "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)" does not free or save its pointer parameter "driver". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:673: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:678: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_false: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:693: cond_true: Condition "def->placement_mode == VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:694: cond_true: Condition "!(cpumap = qemuPrepareCpumap(driver, nodemask))", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:695: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:725: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:728: cond_true: Condition "cgroup_emulator", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:733: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:734: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:738: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:659: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:661: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:665: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:670: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:672: alloc_arg: "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_emulator". >libvirt-0.10.2/src/util/cgroup.c:1085:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1088:5: cond_false: Condition "virAsprintf(&path, "%s/emulator", driver->path) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1091:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1092:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1094:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1095:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1096:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:673: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:678: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_false: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:693: cond_false: Condition "def->placement_mode == VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:697: cond_true: Condition "def->cputune.emulatorpin", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:699: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:703: cond_true: Condition "cpumask", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:704: cond_false: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPUSET)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:708: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:712: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:713: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:714: noescape: Resource "cgroup_emulator" is not freed or pointed-to in function "qemuSetupCgroupVcpuBW(virCgroupPtr, unsigned long long, long long)". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:444:40: noescape: "qemuSetupCgroupVcpuBW(virCgroupPtr, unsigned long long, long long)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:714: cond_true: Condition "(rc = qemuSetupCgroupVcpuBW(cgroup_emulator, period, quota)) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:716: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:725: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:728: cond_true: Condition "cgroup_emulator", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:729: noescape: Resource "cgroup_emulator" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:733: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:738: leaked_storage: Variable "cgroup_emulator" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:659: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:661: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:665: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:670: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:672: alloc_arg: "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_emulator". >libvirt-0.10.2/src/util/cgroup.c:1085:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1088:5: cond_false: Condition "virAsprintf(&path, "%s/emulator", driver->path) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1091:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1092:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1094:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1095:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1096:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:673: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:678: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_false: Condition "!qemuCgroupControllerActive(driver, i)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:683: noescape: Resource "cgroup_emulator" is not freed or pointed-to in function "virCgroupMoveTask(virCgroupPtr, virCgroupPtr, int)". >libvirt-0.10.2/src/util/cgroup.c:873:60: noescape: "virCgroupMoveTask(virCgroupPtr, virCgroupPtr, int)" does not free or save its pointer parameter "dest_group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:684: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:689: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:725: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:728: cond_true: Condition "cgroup_emulator", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:729: noescape: Resource "cgroup_emulator" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:733: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:738: leaked_storage: Variable "cgroup_emulator" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:653: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:659: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:661: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:665: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:670: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:672: alloc_arg: "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_emulator". >libvirt-0.10.2/src/util/cgroup.c:1085:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1088:5: cond_false: Condition "virAsprintf(&path, "%s/emulator", driver->path) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1091:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1092:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1094:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1095:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1096:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:673: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:678: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_true: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:681: cond_true: Condition "!qemuCgroupControllerActive(driver, i)", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:682: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop: Looping back >libvirt-0.10.2/src/qemu/qemu_cgroup.c:680: cond_false: Condition "i < VIR_CGROUP_CONTROLLER_LAST", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:691: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_cgroup.c:693: cond_true: Condition "def->placement_mode == VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:694: cond_true: Condition "!(cpumap = qemuPrepareCpumap(driver, nodemask))", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:695: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:725: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:728: cond_true: Condition "cgroup_emulator", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:729: noescape: Resource "cgroup_emulator" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:733: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:738: leaked_storage: Variable "cgroup_emulator" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:552: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:558: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:561: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:562: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:567: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:569: cond_false: Condition "priv->nvcpupids == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:569: cond_false: Condition "priv->vcpupids[0] == vm->pid", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:576: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:578: cond_true: Condition "i < priv->nvcpupids", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:579: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)". >libvirt-0.10.2/src/util/cgroup.c:1034:35: noescape: "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)" does not free or save its pointer parameter "driver". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:580: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:586: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:590: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:594: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:626: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:627: cond_true: Condition "cgroup_vcpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:632: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:633: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:637: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:552: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:558: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:561: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:562: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:567: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:569: cond_true: Condition "priv->nvcpupids == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:575: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:552: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:558: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:562: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:567: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:569: cond_false: Condition "priv->nvcpupids == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:569: cond_false: Condition "priv->vcpupids[0] == vm->pid", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:576: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:578: cond_true: Condition "i < priv->nvcpupids", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:579: alloc_arg: "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_vcpu". >libvirt-0.10.2/src/util/cgroup.c:1042:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1045:5: cond_false: Condition "virAsprintf(&path, "%s/vcpu%d", driver->path, vcpuid) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1048:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1049:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1051:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1052:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1053:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:580: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:586: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:589: noescape: Resource "cgroup_vcpu" is not freed or pointed-to in function "virCgroupAddTask(virCgroupPtr, pid_t)". >libvirt-0.10.2/src/util/cgroup.c:788:35: noescape: "virCgroupAddTask(virCgroupPtr, pid_t)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:590: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:595: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:597: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:598: noescape: Resource "cgroup_vcpu" is not freed or pointed-to in function "qemuSetupCgroupVcpuBW(virCgroupPtr, unsigned long long, long long)". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:444:40: noescape: "qemuSetupCgroupVcpuBW(virCgroupPtr, unsigned long long, long long)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:598: cond_true: Condition "qemuSetupCgroupVcpuBW(cgroup_vcpu, period, quota) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:599: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:626: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:627: cond_true: Condition "cgroup_vcpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:628: noescape: Resource "cgroup_vcpu" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:632: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:637: leaked_storage: Variable "cgroup_vcpu" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_true: Condition "period", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_false: Condition "!driver->cgroup", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:546: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:552: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:558: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:562: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:567: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:569: cond_false: Condition "priv->nvcpupids == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:569: cond_false: Condition "priv->vcpupids[0] == vm->pid", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:576: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:578: cond_true: Condition "i < priv->nvcpupids", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:579: alloc_arg: "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_vcpu". >libvirt-0.10.2/src/util/cgroup.c:1042:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1045:5: cond_false: Condition "virAsprintf(&path, "%s/vcpu%d", driver->path, vcpuid) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1048:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1049:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1051:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1052:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1053:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:580: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:586: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:589: noescape: Resource "cgroup_vcpu" is not freed or pointed-to in function "virCgroupAddTask(virCgroupPtr, pid_t)". >libvirt-0.10.2/src/util/cgroup.c:788:35: noescape: "virCgroupAddTask(virCgroupPtr, pid_t)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:590: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:594: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:626: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:627: cond_true: Condition "cgroup_vcpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:628: noescape: Resource "cgroup_vcpu" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:632: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:637: leaked_storage: Variable "cgroup_vcpu" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "esxVI_HostNicOrderPolicy_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"activeNic")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: alloc_arg: "esxVI_String_Deserialize(xmlNodePtr, esxVI_String **)" allocates memory that is stored into "activeNicItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "string == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "*string != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1298:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "*string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_Alloc(string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_DeserializeValue(node, &(*string)->value) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1303:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_true: Condition "esxVI_String_Deserialize(childNode, &activeNicItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: leaked_storage: Variable "activeNicItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "esxVI_HostNicOrderPolicy_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"activeNic")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"standbyNic")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: alloc_arg: "esxVI_String_Deserialize(xmlNodePtr, esxVI_String **)" allocates memory that is stored into "standbyNicItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "string == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "*string != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1298:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "*string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_Alloc(string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_DeserializeValue(node, &(*string)->value) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1303:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: cond_true: Condition "esxVI_String_Deserialize(childNode, &standbyNicItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1972: leaked_storage: Variable "standbyNicItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:191: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "spec == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "partialUpdates == 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "esxVI_PropertyFilterSpec_Serialize(spec, "spec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "esxVI_Boolean_Serialize(partialUpdates, "partialUpdates", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/util/cgroup.c:651: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "rootgrp". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:652: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:655: cond_true: Condition "privileged", taking true branch >libvirt-0.10.2/src/util/cgroup.c:657: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/cgroup.c:674: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:675: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:678: noescape: Resource "rootgrp" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:44: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "parent". >libvirt-0.10.2/src/util/cgroup.c:682: leaked_storage: Variable "rootgrp" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/util/cgroup.c:651: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "rootgrp". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:652: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:655: cond_true: Condition "privileged", taking true branch >libvirt-0.10.2/src/util/cgroup.c:657: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/cgroup.c:674: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:675: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:676: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/util/cgroup.c:680: label: Reached label "cleanup" >libvirt-0.10.2/src/util/cgroup.c:682: leaked_storage: Variable "rootgrp" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_false: Condition "esxVI_String_SerializeValue(version, "version", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:715: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:1639: cond_false: Condition "list == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1639: cond_false: Condition "*list != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1639: cond_false: Condition "castFromAnyTypeFunc == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1639: cond_false: Condition "freeFunc == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1643: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1645: cond_false: Condition "anyType == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1647: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1649: cond_false: Condition "!(__coverity_strncmp(anyType->other, "ArrayOf", 7UL /* strlen("ArrayOf") */) == 0)", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1654: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1656: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1658: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1662: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1666: alloc_arg: "esxVI_AnyType_Deserialize(xmlNodePtr, esxVI_AnyType **)" allocates memory that is stored into "childAnyType". >libvirt-0.10.2/src/esx/esx_vi_types.c:1009:5: cond_false: Condition "anyType == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1009:5: cond_false: Condition "*anyType != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1012:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1014:5: alloc_arg: "esxVI_AnyType_Alloc(esxVI_AnyType **)" allocates memory that is stored into "*anyType". >libvirt-0.10.2/src/esx/esx_vi_types.c:901:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:901:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 56UL /* sizeof (esxVI_AnyType) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:901:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1014:5: cond_false: Condition "esxVI_AnyType_Alloc(anyType) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1016:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1020:5: cond_true: Condition "(*anyType)->node == NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1023:9: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.c:1121:3: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi.c:1666: cond_true: Condition "esxVI_AnyType_Deserialize(childNode, &childAnyType) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1669: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1677: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1678: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1685: leaked_storage: Variable "childAnyType" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:62: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "*output != 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "sessionID == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "userName == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "esxVI_String_SerializeValue(sessionID, "sessionID", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "esxVI_String_SerializeValue(userName, "userName", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:652: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "esxVI_HostVmfsVolume_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"type")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"name")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"capacity")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"blockSizeMb")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"maxBlocks")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"majorVersion")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"version")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"uuid")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"extent")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: alloc_arg: "esxVI_HostScsiDiskPartition_Deserialize(xmlNodePtr, esxVI_HostScsiDiskPartition **)" allocates memory that is stored into "extentItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: alloc_arg: "esxVI_HostScsiDiskPartition_Alloc(esxVI_HostScsiDiskPartition **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2175:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2175:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_HostScsiDiskPartition) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2175:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: cond_false: Condition "esxVI_HostScsiDiskPartition_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2197:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: cond_true: Condition "esxVI_HostScsiDiskPartition_Deserialize(childNode, &extentItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2687: leaked_storage: Variable "extentItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "userName == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "password == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "esxVI_String_SerializeValue(userName, "userName", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "esxVI_String_SerializeValue(password, "password", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "esxVI_String_SerializeValue(locale, "locale", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:249: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1933: cond_false: Condition "i < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1937: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1941: cond_false: Condition "qemuIsMultiFunctionDevice(vm->def, &detach->info)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1946: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1948: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1949: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1949: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1954: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1957: cond_false: Condition "!virDomainDeviceAddressIsValid(&detach->info, VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1962: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1966: cond_true: Condition "virAsprintf(&drivestr, "%s%s", "drive-", detach->info.alias) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:1969: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2021: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2023: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2024: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_false: Condition "esxVI_HostDatastoreBrowserSearchResults_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"datastore")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"folderPath")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"file")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: alloc_arg: "esxVI_FileInfo_Deserialize(xmlNodePtr, esxVI_FileInfo **)" allocates memory that is stored into "fileItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: cond_false: Condition "esxVI_GetActualObjectType(node, esxVI_Type_FileInfo, &type) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: switch: Switch case value "esxVI_Type_FileInfo" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: switch_case: Reached case "esxVI_Type_FileInfo" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: break: Breaking from switch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: switch_end: Reached end of switch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: alloc_arg: "esxVI_FileInfo_Alloc(esxVI_FileInfo **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:883:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:883:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 40UL /* sizeof (esxVI_FileInfo) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:883:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: cond_false: Condition "esxVI_FileInfo_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:932:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: cond_true: Condition "esxVI_FileInfo_Deserialize(childNode, &fileItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:1472: leaked_storage: Variable "fileItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2039: cond_false: Condition "i < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2043: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2045: cond_false: Condition "!qemuCapsGet(priv->caps, QEMU_CAPS_DEVICE)", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2050: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2054: cond_false: Condition "detach->mirror", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2059: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2061: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2062: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2062: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2067: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2072: cond_true: Condition "virAsprintf(&drivestr, "%s%s", "drive-", detach->info.alias) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2075: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2113: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2114: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_hotplug.c:2116: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:4384: cond_false: Condition "errorMessage == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4384: cond_false: Condition "*errorMessage != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4387: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "(size_t)(void const *)&""[1] - (size_t)(void const *)"" == 1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "(char const *)""[0] == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4391: cond_false: Condition "version == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4394: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4396: alloc_arg: "esxVI_ObjectSpec_Alloc(esxVI_ObjectSpec **)" allocates memory that is stored into "objectSpec". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3021:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3021:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 40UL /* sizeof (esxVI_ObjectSpec) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3021:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4396: cond_false: Condition "esxVI_ObjectSpec_Alloc(&objectSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4398: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4403: cond_true: Condition "esxVI_PropertySpec_Alloc(&propertySpec) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4404: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:4549: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:4554: cond_true: Condition "objectSpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4558: cond_true: Condition "propertySpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4562: cond_true: Condition "!objectSpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4566: cond_true: Condition "!propertySpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4572: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4576: leaked_storage: Variable "objectSpec" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:4384: cond_false: Condition "errorMessage == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4384: cond_false: Condition "*errorMessage != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4387: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "(size_t)(void const *)&""[1] - (size_t)(void const *)"" == 1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "(char const *)""[0] == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4391: cond_false: Condition "version == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4394: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4396: cond_false: Condition "esxVI_ObjectSpec_Alloc(&objectSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4398: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4403: cond_false: Condition "esxVI_PropertySpec_Alloc(&propertySpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4405: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4409: cond_false: Condition "esxVI_String_AppendValueToList(&propertySpec->pathSet, "info.state") < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4409: alloc_arg: "esxVI_PropertyFilterSpec_Alloc(esxVI_PropertyFilterSpec **)" allocates memory that is stored into "propertyFilterSpec". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3731:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3731:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_PropertyFilterSpec) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3731:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4409: cond_false: Condition "esxVI_PropertyFilterSpec_Alloc(&propertyFilterSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4409: cond_false: Condition "esxVI_PropertySpec_AppendToList(&propertyFilterSpec->propSet, propertySpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4415: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4419: cond_false: Condition "esxVI_ObjectSpec_AppendToList(&propertyFilterSpec->objectSet, objectSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4422: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4426: noescape: Resource "propertyFilterSpec" is not freed or pointed-to in function "esxVI_CreateFilter(esxVI_Context *, esxVI_PropertyFilterSpec *, esxVI_Boolean, esxVI_ManagedObjectReference **)". >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:104:1: noescape: "esxVI_CreateFilter(esxVI_Context *, esxVI_PropertyFilterSpec *, esxVI_Boolean, esxVI_ManagedObjectReference **)" does not free or save its pointer parameter "spec". >libvirt-0.10.2/src/esx/esx_vi.c:4426: cond_true: Condition "esxVI_CreateFilter(ctx, propertyFilterSpec, esxVI_Boolean_True, &propertyFilter) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4428: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:4549: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:4554: cond_true: Condition "objectSpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4558: cond_true: Condition "propertySpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4562: cond_false: Condition "!objectSpec_isAppended", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4564: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4566: cond_false: Condition "!propertySpec_isAppended", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4568: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4572: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4576: leaked_storage: Variable "propertyFilterSpec" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:4384: cond_false: Condition "errorMessage == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4384: cond_false: Condition "*errorMessage != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4387: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "(size_t)(void const *)&""[1] - (size_t)(void const *)"" == 1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4389: cond_true: Condition "(char const *)""[0] == 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4391: cond_false: Condition "version == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4394: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4396: cond_false: Condition "esxVI_ObjectSpec_Alloc(&objectSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4398: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4403: alloc_arg: "esxVI_PropertySpec_Alloc(esxVI_PropertySpec **)" allocates memory that is stored into "propertySpec". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3809:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3809:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 40UL /* sizeof (esxVI_PropertySpec) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3809:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4403: cond_false: Condition "esxVI_PropertySpec_Alloc(&propertySpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4405: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:4409: cond_false: Condition "esxVI_String_AppendValueToList(&propertySpec->pathSet, "info.state") < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:4409: cond_true: Condition "esxVI_PropertyFilterSpec_Alloc(&propertyFilterSpec) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4414: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:4549: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:4554: cond_true: Condition "objectSpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4558: cond_true: Condition "propertySpec != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4562: cond_true: Condition "!objectSpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4566: cond_true: Condition "!propertySpec_isAppended", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4572: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:4576: leaked_storage: Variable "propertySpec" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: cond_false: Condition "esxVI_HostVirtualSwitchBondBridge_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"nicDevice")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: alloc_arg: "esxVI_String_Deserialize(xmlNodePtr, esxVI_String **)" allocates memory that is stored into "nicDeviceItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "string == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "*string != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1298:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "*string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_Alloc(string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_DeserializeValue(node, &(*string)->value) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1303:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: cond_true: Condition "esxVI_String_Deserialize(childNode, &nicDeviceItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2444: leaked_storage: Variable "nicDeviceItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: cond_false: Condition "esxVI_HostVirtualSwitchAutoBridge_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"excludedNicDevice")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: alloc_arg: "esxVI_String_Deserialize(xmlNodePtr, esxVI_String **)" allocates memory that is stored into "excludedNicDeviceItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "string == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "*string != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1298:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "*string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_Alloc(string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_DeserializeValue(node, &(*string)->value) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1303:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: cond_true: Condition "esxVI_String_Deserialize(childNode, &excludedNicDeviceItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2337: leaked_storage: Variable "excludedNicDeviceItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_process.c:228: cond_false: Condition "virHookPresent(VIR_HOOK_DRIVER_LXC)", taking false branch >libvirt-0.10.2/src/lxc/lxc_process.c:236: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_process.c:241: cond_true: Condition "priv->monitor", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:254: cond_true: Condition "i < vm->def->nnets", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_true: Condition "vport", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_true: Condition "vport->virtPortType == VIR_NETDEV_VPORT_PROFILE_OPENVSWITCH", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:264: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: cond_true: Condition "i < vm->def->nnets", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_true: Condition "vport", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_true: Condition "vport->virtPortType == VIR_NETDEV_VPORT_PROFILE_OPENVSWITCH", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:264: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: cond_true: Condition "i < vm->def->nnets", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_true: Condition "vport", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_true: Condition "vport->virtPortType == VIR_NETDEV_VPORT_PROFILE_OPENVSWITCH", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:264: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: cond_true: Condition "i < vm->def->nnets", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_true: Condition "vport", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_true: Condition "vport->virtPortType == VIR_NETDEV_VPORT_PROFILE_OPENVSWITCH", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:264: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: cond_true: Condition "i < vm->def->nnets", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:258: cond_false: Condition "vport", taking false branch >libvirt-0.10.2/src/lxc/lxc_process.c:264: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_process.c:254: cond_false: Condition "i < vm->def->nnets", taking false branch >libvirt-0.10.2/src/lxc/lxc_process.c:264: loop_end: Reached end of loop >libvirt-0.10.2/src/lxc/lxc_process.c:268: cond_true: Condition "driver->cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:268: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:268: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:270: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupRemove(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:755:34: noescape: "virCgroupRemove(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_process.c:275: cond_false: Condition "virHookPresent(VIR_HOOK_DRIVER_LXC)", taking false branch >libvirt-0.10.2/src/lxc/lxc_process.c:283: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_process.c:285: cond_true: Condition "vm->newDef", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:291: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_migration.c:3238: cond_false: Condition "qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3243: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_migration.c:3245: cond_false: Condition "qemuCapsGet(priv->caps, QEMU_CAPS_MIGRATE_QEMU_FD)", taking false branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3255: else_branch: Reached else branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3261: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3263: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3263: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3269: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_migration.c:3270: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupAllowDevicePath(virCgroupPtr, char const *, int)". >libvirt-0.10.2/src/util/cgroup.c:1535:43: noescape: "virCgroupAllowDevicePath(virCgroupPtr, char const *, int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_migration.c:3272: noescape: Resource "cgroup" is not freed or pointed-to in function "virDomainAuditCgroupPath(virDomainObjPtr, virCgroupPtr, char const *, char const *, char const *, int)". >libvirt-0.10.2/src/conf/domain_audit.c:459:59: noescape: "virDomainAuditCgroupPath(virDomainObjPtr, virCgroupPtr, char const *, char const *, char const *, int)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_migration.c:3273: cond_false: Condition "rc == 1", taking false branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3276: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3280: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_migration.c:3354: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_migration.c:3356: cond_false: Condition "qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3360: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_migration.c:3365: cond_false: Condition "restoreLabel", taking false branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3370: cond_true: Condition "cgroup != NULL", taking true branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3371: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupDenyDevicePath(virCgroupPtr, char const *, int)". >libvirt-0.10.2/src/util/cgroup.c:1631:42: noescape: "virCgroupDenyDevicePath(virCgroupPtr, char const *, int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_migration.c:3373: noescape: Resource "cgroup" is not freed or pointed-to in function "virDomainAuditCgroupPath(virDomainObjPtr, virCgroupPtr, char const *, char const *, char const *, int)". >libvirt-0.10.2/src/conf/domain_audit.c:459:59: noescape: "virDomainAuditCgroupPath(virDomainObjPtr, virCgroupPtr, char const *, char const *, char const *, int)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_migration.c:3374: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_migration.c:3379: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/util/cgroup.c:934: alloc_arg: "virCgroupAppRoot(int, virCgroupPtr *, int)" allocates memory that is stored into "rootgrp". >libvirt-0.10.2/src/util/cgroup.c:652:5: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:655:5: cond_true: Condition "privileged", taking true branch >libvirt-0.10.2/src/util/cgroup.c:656:9: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:657:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/cgroup.c:674:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:675:5: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:678:5: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:935: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:938: cond_false: Condition "virAsprintf(&path, "%s/%s", rootgrp->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:941: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:944: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:946: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:947: noescape: Resource "rootgrp" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:44: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "parent". >libvirt-0.10.2/src/util/cgroup.c:948: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:955: leaked_storage: Variable "rootgrp" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/util/cgroup.c:934: alloc_arg: "virCgroupAppRoot(int, virCgroupPtr *, int)" allocates memory that is stored into "rootgrp". >libvirt-0.10.2/src/util/cgroup.c:652:5: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:655:5: cond_true: Condition "privileged", taking true branch >libvirt-0.10.2/src/util/cgroup.c:656:9: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:657:5: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/cgroup.c:674:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:675:5: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:678:5: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:935: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:938: cond_true: Condition "virAsprintf(&path, "%s/%s", rootgrp->path, name) < 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:940: goto: Jumping to label "out" >libvirt-0.10.2/src/util/cgroup.c:952: label: Reached label "out" >libvirt-0.10.2/src/util/cgroup.c:955: leaked_storage: Variable "rootgrp" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_false: Condition "datastorePath == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_false: Condition "esxVI_String_SerializeValue(datastorePath, "datastorePath", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_false: Condition "esxVI_HostDatastoreBrowserSearchSpec_Serialize(searchSpec, "searchSpec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:632: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:6137: cond_false: Condition "qemuDomainDetermineDiskChain(driver, disk, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6140: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6141: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6141: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6146: goto: Jumping to label "end" >libvirt-0.10.2/src/qemu/qemu_driver.c:6171: label: Reached label "end" >libvirt-0.10.2/src/qemu/qemu_driver.c:6172: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6174: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1816: cond_false: Condition "virAllocN(machines, 8UL /* sizeof (**machines) */, caps->nmachineTypes) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1820: cond_true: Condition "i < caps->nmachineTypes", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1822: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "mach". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1822: cond_false: Condition "virAlloc(&mach, 16UL /* sizeof (*mach) */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1824: cond_true: Condition "caps->machineAliases[i]", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1825: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1825: cond_true: Condition "!(mach->name = ((0 && (size_t)(void const *)(caps->machineAliases[i] + 1) - (size_t)(void const *)caps->machineAliases[i] == 1) ? ((char const *)caps->machineAliases[i][0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(caps->machineAliases[i])))", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1826: goto: Jumping to label "no_memory" >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1826: leaked_storage: Variable "mach" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1816: cond_false: Condition "virAllocN(machines, 8UL /* sizeof (**machines) */, caps->nmachineTypes) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1820: cond_true: Condition "i < caps->nmachineTypes", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1822: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "mach". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1822: cond_false: Condition "virAlloc(&mach, 16UL /* sizeof (*mach) */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1824: cond_true: Condition "caps->machineAliases[i]", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1825: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1825: cond_false: Condition "!(mach->name = ((0 && (size_t)(void const *)(caps->machineAliases[i] + 1) - (size_t)(void const *)caps->machineAliases[i] == 1) ? ((char const *)caps->machineAliases[i][0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(caps->machineAliases[i])))", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1827: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1827: cond_true: Condition "!(mach->canonical = ((0 && (size_t)(void const *)(caps->machineTypes[i] + 1) - (size_t)(void const *)caps->machineTypes[i] == 1) ? ((char const *)caps->machineTypes[i][0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(caps->machineTypes[i])))", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1828: goto: Jumping to label "no_memory" >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1828: leaked_storage: Variable "mach" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1816: cond_false: Condition "virAllocN(machines, 8UL /* sizeof (**machines) */, caps->nmachineTypes) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1820: cond_true: Condition "i < caps->nmachineTypes", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1822: cond_false: Condition "virAlloc(&mach, 16UL /* sizeof (*mach) */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1824: cond_true: Condition "caps->machineAliases[i]", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1825: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1825: cond_false: Condition "!(mach->name = ((0 && (size_t)(void const *)(caps->machineAliases[i] + 1) - (size_t)(void const *)caps->machineAliases[i] == 1) ? ((char const *)caps->machineAliases[i][0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(caps->machineAliases[i])))", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1827: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1827: cond_false: Condition "!(mach->canonical = ((0 && (size_t)(void const *)(caps->machineTypes[i] + 1) - (size_t)(void const *)caps->machineTypes[i] == 1) ? ((char const *)caps->machineTypes[i][0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(caps->machineTypes[i])))", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1829: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1832: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1834: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1820: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1820: cond_true: Condition "i < caps->nmachineTypes", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1822: cond_false: Condition "virAlloc(&mach, 16UL /* sizeof (*mach) */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1824: cond_true: Condition "caps->machineAliases[i]", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1825: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1825: cond_false: Condition "!(mach->name = ((0 && (size_t)(void const *)(caps->machineAliases[i] + 1) - (size_t)(void const *)caps->machineAliases[i] == 1) ? ((char const *)caps->machineAliases[i][0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(caps->machineAliases[i])))", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1827: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1827: cond_false: Condition "!(mach->canonical = ((0 && (size_t)(void const *)(caps->machineTypes[i] + 1) - (size_t)(void const *)caps->machineTypes[i] == 1) ? ((char const *)caps->machineTypes[i][0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(caps->machineTypes[i])))", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1829: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1832: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1834: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1820: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1820: cond_true: Condition "i < caps->nmachineTypes", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1822: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "mach". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1822: cond_false: Condition "virAlloc(&mach, 16UL /* sizeof (*mach) */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1824: cond_false: Condition "caps->machineAliases[i]", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1829: else_branch: Reached else branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1830: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1830: cond_true: Condition "!(mach->name = ((0 && (size_t)(void const *)(caps->machineTypes[i] + 1) - (size_t)(void const *)caps->machineTypes[i] == 1) ? ((char const *)caps->machineTypes[i][0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(caps->machineTypes[i])))", taking true branch >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1831: goto: Jumping to label "no_memory" >libvirt-0.10.2/src/qemu/qemu_capabilities.c:1831: leaked_storage: Variable "mach" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:1791: cond_false: Condition "selectSet == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1798: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1800: cond_false: Condition "esxVI_TraversalSpec_Alloc(&traversalSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1800: cond_false: Condition "esxVI_String_DeepCopyValue(&traversalSpec->name, name) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1800: cond_false: Condition "esxVI_String_DeepCopyValue(&traversalSpec->type, type) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1800: cond_false: Condition "esxVI_String_DeepCopyValue(&traversalSpec->path, path) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1805: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1809: cond_true: Condition "selectSetNames != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1812: cond_true: Condition "currentSelectSetName != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1812: cond_true: Condition "*currentSelectSetName != 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1813: alloc_arg: "esxVI_SelectionSpec_Alloc(esxVI_SelectionSpec **)" allocates memory that is stored into "selectionSpec". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3927:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3927:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_SelectionSpec) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3927:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1813: cond_false: Condition "esxVI_SelectionSpec_Alloc(&selectionSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1813: cond_true: Condition "esxVI_String_DeepCopyValue(&selectionSpec->name, currentSelectSetName) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1818: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi.c:1834: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi.c:1838: leaked_storage: Variable "selectionSpec" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi.c:1791: cond_false: Condition "selectSet == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1798: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1800: alloc_arg: "esxVI_TraversalSpec_Alloc(esxVI_TraversalSpec **)" allocates memory that is stored into "traversalSpec". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4304:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4304:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 56UL /* sizeof (esxVI_TraversalSpec) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:4304:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1800: cond_false: Condition "esxVI_TraversalSpec_Alloc(&traversalSpec) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1800: cond_false: Condition "esxVI_String_DeepCopyValue(&traversalSpec->name, name) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1800: cond_false: Condition "esxVI_String_DeepCopyValue(&traversalSpec->type, type) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1800: cond_false: Condition "esxVI_String_DeepCopyValue(&traversalSpec->path, path) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1805: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1809: cond_true: Condition "selectSetNames != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1812: cond_true: Condition "currentSelectSetName != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1812: cond_true: Condition "*currentSelectSetName != 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1813: cond_true: Condition "esxVI_SelectionSpec_Alloc(&selectionSpec) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1818: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi.c:1834: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi.c:1838: leaked_storage: Variable "traversalSpec" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:5899: cond_true: Condition "disk->driverName != NULL", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:5899: cond_false: Condition "!(__coverity_strcmp(disk->driverName, "qemu") == 0)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:5904: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:5906: cond_false: Condition "qemuDomainDetermineDiskChain(driver, disk, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:5909: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:5910: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:5910: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:5914: goto: Jumping to label "end" >libvirt-0.10.2/src/qemu/qemu_driver.c:5956: label: Reached label "end" >libvirt-0.10.2/src/qemu/qemu_driver.c:5957: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:5959: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_process.c:685: cond_false: Condition "vm->pid <= 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_process.c:689: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_process.c:695: cond_true: Condition "vm->def->nseclabels", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:695: cond_true: Condition "vm->def->seclabels[0]->type == VIR_DOMAIN_SECLABEL_DYNAMIC", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:697: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:698: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:699: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:702: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:702: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:703: noescape: Resource "group" is not freed or pointed-to in function "virCgroupKillPainfully(virCgroupPtr)". >libvirt-0.10.2/src/util/cgroup.c:2017:41: noescape: "virCgroupKillPainfully(virCgroupPtr)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_process.c:704: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_process.c:708: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_process.c:726: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_process.c:728: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "ip == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "vmSearch == 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(datacenter, "datacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "esxVI_String_SerializeValue(ip, "ip", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "esxVI_Boolean_Serialize(vmSearch, "vmSearch", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_OptionalItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:205: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "name == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "esxVI_String_SerializeValue(name, "name", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(datacenter, "datacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:417: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_cgroup.c:230: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:238: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_cgroup.c:240: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:241: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:246: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_cgroup.c:248: noescape: Resource "cgroup" is not freed or pointed-to in function "virLXCCgroupSetupCpuTune(virDomainDefPtr, virCgroupPtr)". >libvirt-0.10.2/src/lxc/lxc_cgroup.c:34:50: noescape: "virLXCCgroupSetupCpuTune(virDomainDefPtr, virCgroupPtr)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/lxc/lxc_cgroup.c:248: cond_false: Condition "virLXCCgroupSetupCpuTune(def, cgroup) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:251: noescape: Resource "cgroup" is not freed or pointed-to in function "virLXCCgroupSetupBlkioTune(virDomainDefPtr, virCgroupPtr)". >libvirt-0.10.2/src/lxc/lxc_cgroup.c:71:52: noescape: "virLXCCgroupSetupBlkioTune(virDomainDefPtr, virCgroupPtr)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/lxc/lxc_cgroup.c:251: cond_true: Condition "virLXCCgroupSetupBlkioTune(def, cgroup) < 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:252: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_cgroup.c:267: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_cgroup.c:271: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_cgroup.c:230: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:238: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_cgroup.c:240: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:241: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:245: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_cgroup.c:267: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_cgroup.c:271: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_cgroup.c:229: alloc_arg: "virCgroupForDriver(char const *, virCgroupPtr *, int, int)" allocates memory that is stored into "driver". >libvirt-0.10.2/src/util/cgroup.c:935:5: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:938:5: cond_false: Condition "virAsprintf(&path, "%s/%s", rootgrp->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:941:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:943:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:944:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:946:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:947:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:948:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:230: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:238: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_cgroup.c:240: noescape: Resource "driver" is not freed or pointed-to in function "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)". >libvirt-0.10.2/src/util/cgroup.c:979:37: noescape: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" does not free or save its pointer parameter "driver". >libvirt-0.10.2/src/lxc/lxc_cgroup.c:241: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:246: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_cgroup.c:248: cond_false: Condition "virLXCCgroupSetupCpuTune(def, cgroup) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:251: cond_true: Condition "virLXCCgroupSetupBlkioTune(def, cgroup) < 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:252: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_cgroup.c:267: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_cgroup.c:271: leaked_storage: Variable "driver" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_cgroup.c:229: alloc_arg: "virCgroupForDriver(char const *, virCgroupPtr *, int, int)" allocates memory that is stored into "driver". >libvirt-0.10.2/src/util/cgroup.c:935:5: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:938:5: cond_false: Condition "virAsprintf(&path, "%s/%s", rootgrp->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:941:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:943:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:944:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:946:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:947:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:948:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:230: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:232: cond_true: Condition "rc == -6", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:233: leaked_storage: Variable "driver" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_cgroup.c:229: alloc_arg: "virCgroupForDriver(char const *, virCgroupPtr *, int, int)" allocates memory that is stored into "driver". >libvirt-0.10.2/src/util/cgroup.c:935:5: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:938:5: cond_false: Condition "virAsprintf(&path, "%s/%s", rootgrp->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:941:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:943:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:944:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:946:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:947:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:948:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:230: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:232: cond_false: Condition "rc == -6", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:232: cond_false: Condition "rc == -2", taking false branch >libvirt-0.10.2/src/lxc/lxc_cgroup.c:237: leaked_storage: Variable "driver" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: cond_false: Condition "esxVI_PerfMetricIntSeries_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"id")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"value")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: alloc_arg: "esxVI_Long_Deserialize(xmlNodePtr, esxVI_Long **)" allocates memory that is stored into "valueItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: cond_false: Condition "number == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: cond_false: Condition "*number != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: alloc_arg: "esxVI_Long_Alloc(esxVI_Long **)" allocates memory that is stored into "*number". >libvirt-0.10.2/src/esx/esx_vi_types.c:1430:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1430:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_Long) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1430:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: cond_false: Condition "esxVI_Long_Alloc(number) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: cond_true: Condition "string == NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1465:1: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: cond_true: Condition "esxVI_Long_Deserialize(childNode, &valueItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3379: leaked_storage: Variable "valueItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.c:239: cond_false: Condition "serviceContent == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:239: cond_false: Condition "*serviceContent != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:242: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:244: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:244: cond_true: Condition "esxVI_Context_Execute(ctx, "RetrieveServiceContent", request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:247: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.c:252: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.c:255: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:328: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(host, "host", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:343: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:701: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_false: Condition "datastorePath == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_false: Condition "esxVI_String_SerializeValue(datastorePath, "datastorePath", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_false: Condition "esxVI_HostDatastoreBrowserSearchSpec_Serialize(searchSpec, "searchSpec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:612: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:14276: cond_true: Condition "i < nvcpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14281: alloc_arg: "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)" allocates memory that is stored into "group_vcpu". >libvirt-0.10.2/src/util/cgroup.c:1042:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1045:5: cond_false: Condition "virAsprintf(&path, "%s/vcpu%d", driver->path, vcpuid) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1048:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1049:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1051:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1052:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1053:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14281: cond_false: Condition "virCgroupForVcpu(group, i, &group_vcpu, 0) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14285: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14287: noescape: Resource "group_vcpu" is not freed or pointed-to in function "virCgroupGetCpuacctPercpuUsage(virCgroupPtr, char **)". >libvirt-0.10.2/src/util/cgroup.c:1755:49: noescape: "virCgroupGetCpuacctPercpuUsage(virCgroupPtr, char **)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_driver.c:14287: cond_true: Condition "virCgroupGetCpuacctPercpuUsage(group_vcpu, &buf) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14288: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:14305: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:14307: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14308: leaked_storage: Variable "group_vcpu" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:672: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:8189: cond_false: Condition "priv->nvcpupids == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8189: cond_false: Condition "priv->vcpupids[0] == vm->pid", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8198: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8201: alloc_arg: "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_vcpu". >libvirt-0.10.2/src/util/cgroup.c:1042:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1045:5: cond_false: Condition "virAsprintf(&path, "%s/vcpu%d", driver->path, vcpuid) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1048:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1049:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1051:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1052:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1053:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8202: cond_false: Condition "!cgroup_vcpu", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8207: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8209: noescape: Resource "cgroup_vcpu" is not freed or pointed-to in function "qemuGetVcpuBWLive(virCgroupPtr, unsigned long long *, long long *)". >libvirt-0.10.2/src/qemu/qemu_driver.c:8157:32: noescape: "qemuGetVcpuBWLive(virCgroupPtr, unsigned long long *, long long *)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_driver.c:8210: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8211: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:8216: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:8218: leaked_storage: Variable "cgroup_vcpu" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:8231: cond_false: Condition "priv->nvcpupids == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8231: cond_false: Condition "priv->vcpupids[0] == vm->pid", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8236: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8239: alloc_arg: "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_emulator". >libvirt-0.10.2/src/util/cgroup.c:1085:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1088:5: cond_false: Condition "virAsprintf(&path, "%s/emulator", driver->path) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1091:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1092:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1094:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1095:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1096:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8240: cond_false: Condition "!cgroup_emulator", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8245: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8247: noescape: Resource "cgroup_emulator" is not freed or pointed-to in function "qemuGetVcpuBWLive(virCgroupPtr, unsigned long long *, long long *)". >libvirt-0.10.2/src/qemu/qemu_driver.c:8157:32: noescape: "qemuGetVcpuBWLive(virCgroupPtr, unsigned long long *, long long *)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_driver.c:8248: cond_true: Condition "rc < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8249: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:8253: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:8255: leaked_storage: Variable "cgroup_emulator" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:11582: cond_false: Condition "!vcpupin_list", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:11588: cond_false: Condition "vcpupin", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:11598: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:11602: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "vcpupin". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:11602: cond_false: Condition "virAlloc(&vcpupin, 16UL /* sizeof (*vcpupin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:11605: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:11608: cond_true: Condition "!vcpupin->cpumask", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:11610: leaked_storage: Variable "vcpupin" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7942: cond_true: Condition "period == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7942: cond_false: Condition "quota == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7945: cond_false: Condition "priv->nvcpupids == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7945: cond_false: Condition "priv->vcpupids[0] == vm->pid", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7947: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7949: alloc_arg: "virCgroupForEmulator(virCgroupPtr, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_emulator". >libvirt-0.10.2/src/util/cgroup.c:1085:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1088:5: cond_false: Condition "virAsprintf(&path, "%s/emulator", driver->path) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1091:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1092:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1094:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1095:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1096:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7950: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7955: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7957: noescape: Resource "cgroup_emulator" is not freed or pointed-to in function "qemuSetupCgroupVcpuBW(virCgroupPtr, unsigned long long, long long)". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:444:40: noescape: "qemuSetupCgroupVcpuBW(virCgroupPtr, unsigned long long, long long)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_driver.c:7957: cond_true: Condition "qemuSetupCgroupVcpuBW(cgroup_emulator, period, quota) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7958: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7963: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7965: leaked_storage: Variable "cgroup_emulator" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:12867: cond_false: Condition "!disk->mirroring", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12882: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:12884: cond_false: Condition "!disk->mirroring", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12889: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:12901: cond_false: Condition "virDomainObjGetState(vm, NULL) == VIR_DOMAIN_RUNNING", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12912: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:12920: cond_true: Condition "disk->mirrorFormat", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12920: cond_true: Condition "disk->mirrorFormat != VIR_STORAGE_FILE_RAW", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12920: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12920: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12920: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12927: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:12934: cond_false: Condition "qemuDomainDetermineDiskChain(driver, disk, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12939: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:12940: cond_true: Condition "disk->mirrorFormat", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12940: cond_true: Condition "disk->mirrorFormat != VIR_STORAGE_FILE_RAW", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12940: cond_true: Condition "virDomainLockDiskAttach(driver->lockManager, driver->uri, vm, disk) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12949: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:12990: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:12991: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:12993: cond_false: Condition "resume", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13007: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13008: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7902: cond_true: Condition "period == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7902: cond_false: Condition "quota == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7909: cond_true: Condition "priv->nvcpupids != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7909: cond_true: Condition "priv->vcpupids[0] != vm->pid", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7910: cond_true: Condition "i < priv->nvcpupids", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7911: alloc_arg: "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_vcpu". >libvirt-0.10.2/src/util/cgroup.c:1042:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1045:5: cond_false: Condition "virAsprintf(&path, "%s/vcpu%d", driver->path, vcpuid) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1048:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1049:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1051:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1052:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1053:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7912: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7918: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7920: noescape: Resource "cgroup_vcpu" is not freed or pointed-to in function "qemuSetupCgroupVcpuBW(virCgroupPtr, unsigned long long, long long)". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:444:40: noescape: "qemuSetupCgroupVcpuBW(virCgroupPtr, unsigned long long, long long)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_driver.c:7920: cond_true: Condition "qemuSetupCgroupVcpuBW(cgroup_vcpu, period, quota) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7921: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7929: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7931: leaked_storage: Variable "cgroup_vcpu" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: cond_false: Condition "esxVI_HostPortGroupPort_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"key")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"mac")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: alloc_arg: "esxVI_String_Deserialize(xmlNodePtr, esxVI_String **)" allocates memory that is stored into "macItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "string == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "*string != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1298:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "*string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_Alloc(string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_DeserializeValue(node, &(*string)->value) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1303:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: cond_true: Condition "esxVI_String_Deserialize(childNode, &macItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113: leaked_storage: Variable "macItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:11181: cond_false: Condition "!virDomainObjIsActive(vm)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11185: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:11187: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11187: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11187: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11193: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:11196: cond_false: Condition "qemuCapsGet(priv->caps, QEMU_CAPS_TRANSACTION)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11201: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:11208: cond_true: Condition "qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11209: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:11265: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:11268: cond_false: Condition "ret == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11268: cond_true: Condition "!qemuCapsGet(priv->caps, QEMU_CAPS_TRANSACTION)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11269: cond_false: Condition "virDomainSaveStatus(driver->caps, driver->stateDir, vm) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11269: cond_false: Condition "persist", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:11274: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_false: Condition "spec == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_false: Condition "esxVI_VirtualMachineConfigSpec_Serialize(spec, "spec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:450: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:436: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(host, "host", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:595: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:686: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:271: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: cond_false: Condition "spec == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: cond_false: Condition "esxVI_HostAutoStartManagerConfig_Serialize(spec, "spec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:468: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:485: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_false: Condition "vswitchName == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_false: Condition "esxVI_String_SerializeValue(vswitchName, "vswitchName", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_false: Condition "esxVI_HostVirtualSwitchSpec_Serialize(spec, "spec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:23: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_false: Condition "removeChildren == 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_false: Condition "esxVI_Boolean_Serialize(removeChildren, "removeChildren", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:543: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "name == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "memory == 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "quiesce == 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "esxVI_String_SerializeValue(name, "name", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "esxVI_String_SerializeValue(description, "description", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "esxVI_Boolean_Serialize(memory, "memory", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "esxVI_Boolean_Serialize(quiesce, "quiesce", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:124: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: cond_false: Condition "portgrp == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: cond_false: Condition "esxVI_HostPortGroupSpec_Serialize(portgrp, "portgrp", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:6: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: cond_false: Condition "esxVI_HostPortGroup_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"key")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"port")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: alloc_arg: "esxVI_HostPortGroupPort_Deserialize(xmlNodePtr, esxVI_HostPortGroupPort **)" allocates memory that is stored into "portItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: alloc_arg: "esxVI_HostPortGroupPort_Alloc(esxVI_HostPortGroupPort **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2091:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2091:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 40UL /* sizeof (esxVI_HostPortGroupPort) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2091:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: cond_false: Condition "esxVI_HostPortGroupPort_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2113:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: cond_true: Condition "esxVI_HostPortGroupPort_Deserialize(childNode, &portItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2072: leaked_storage: Variable "portItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_false: Condition "name == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_false: Condition "esxVI_String_SerializeValue(name, "name", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(datacenter, "datacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_false: Condition "esxVI_Boolean_Serialize(createParentDirectories, "createParentDirectories", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:284: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:1918: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1918: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1923: cond_true: Condition "*nparams > 1", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1925: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1927: cond_false: Condition "!!rc", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1927: cond_false: Condition "!!rc", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1932: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1936: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1938: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1942: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1949: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1951: cond_false: Condition "!lxcCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1955: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1957: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1957: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1961: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1963: noescape: Resource "group" is not freed or pointed-to in function "virCgroupGetCpuShares(virCgroupPtr, unsigned long long *)". >libvirt-0.10.2/src/util/cgroup.c:1663:40: noescape: "virCgroupGetCpuShares(virCgroupPtr, unsigned long long *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:1964: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1967: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:2003: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:2005: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2008: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/daemon/libvirtd.c:137: cond_false: Condition "pipe(statuspipe) < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:141: switch: Switch case value "0" >libvirt-0.10.2/daemon/libvirtd.c:142: switch_case: Reached case "0" >libvirt-0.10.2/daemon/libvirtd.c:151: open_fn: Returning handle opened by function "open(char const *, int, ...)". >libvirt-0.10.2/daemon/libvirtd.c:151: var_assign: Assigning: "stdinfd" = handle returned from "open("/dev/null", 0)". >libvirt-0.10.2/daemon/libvirtd.c:151: cond_false: Condition "(stdinfd = open("/dev/null", 0)) < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:153: cond_false: Condition "(stdoutfd = open("/dev/null", 1)) < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:155: noescape: Resource "stdinfd" is not freed or pointed-to in function "dup2(int, int)". >libvirt-0.10.2/daemon/libvirtd.c:155: cond_false: Condition "dup2(stdinfd, 0) != 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:157: cond_false: Condition "dup2(stdoutfd, 1) != 1", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:159: cond_false: Condition "dup2(stdoutfd, 2) != 2", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:161: cond_false: Condition "stdinfd > 2", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:163: cond_false: Condition "stdoutfd > 2", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:166: cond_false: Condition "setsid() < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:170: switch: Switch case value "0" >libvirt-0.10.2/daemon/libvirtd.c:171: switch_case: Reached case "0" >libvirt-0.10.2/daemon/libvirtd.c:172: leaked_handle: Handle variable "stdinfd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/daemon/libvirtd.c:137: cond_false: Condition "pipe(statuspipe) < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:141: switch: Switch case value "0" >libvirt-0.10.2/daemon/libvirtd.c:142: switch_case: Reached case "0" >libvirt-0.10.2/daemon/libvirtd.c:151: cond_false: Condition "(stdinfd = open("/dev/null", 0)) < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:153: open_fn: Returning handle opened by function "open(char const *, int, ...)". >libvirt-0.10.2/daemon/libvirtd.c:153: var_assign: Assigning: "stdoutfd" = handle returned from "open("/dev/null", 1)". >libvirt-0.10.2/daemon/libvirtd.c:153: cond_false: Condition "(stdoutfd = open("/dev/null", 1)) < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:155: cond_false: Condition "dup2(stdinfd, 0) != 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:157: noescape: Resource "stdoutfd" is not freed or pointed-to in function "dup2(int, int)". >libvirt-0.10.2/daemon/libvirtd.c:157: cond_false: Condition "dup2(stdoutfd, 1) != 1", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:159: noescape: Resource "stdoutfd" is not freed or pointed-to in function "dup2(int, int)". >libvirt-0.10.2/daemon/libvirtd.c:159: cond_false: Condition "dup2(stdoutfd, 2) != 2", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:161: cond_true: Condition "stdinfd > 2", taking true branch >libvirt-0.10.2/daemon/libvirtd.c:161: cond_false: Condition "virFileClose(&stdinfd, 0) < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:163: cond_false: Condition "stdoutfd > 2", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:166: cond_false: Condition "setsid() < 0", taking false branch >libvirt-0.10.2/daemon/libvirtd.c:170: switch: Switch case value "0" >libvirt-0.10.2/daemon/libvirtd.c:171: switch_case: Reached case "0" >libvirt-0.10.2/daemon/libvirtd.c:172: leaked_handle: Handle variable "stdoutfd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "name == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "esxVI_String_SerializeValue(name, "name", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(datacenter, "datacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:172: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "name == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "spec == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "esxVI_String_SerializeValue(name, "name", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(datacenter, "datacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "esxVI_VirtualDiskSpec_Serialize(spec, "spec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:150: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "sourceName == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "destName == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "esxVI_String_SerializeValue(sourceName, "sourceName", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(sourceDatacenter, "sourceDatacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "esxVI_String_SerializeValue(destName, "destName", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(destDatacenter, "destDatacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "esxVI_VirtualDiskSpec_Serialize(destSpec, "destSpec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "esxVI_Boolean_Serialize(force, "force", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:76: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "path == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "asTemplate == 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "esxVI_String_SerializeValue(path, "path", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "esxVI_String_SerializeValue(name, "name", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "esxVI_Boolean_Serialize(asTemplate, "asTemplate", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(pool, "pool", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(host, "host", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:499: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: cond_false: Condition "vswitchName == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: cond_false: Condition "esxVI_String_SerializeValue(vswitchName, "vswitchName", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:561: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "esxVI_ManagedObjectReference_SerializeList(vm, "vm", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "esxVI_VirtualMachinePowerState_Serialize(state, "state", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "esxVI_String_SerializeList(testType, "testType", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(pool, "pool", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(host, "host", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_OptionalList) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.c:261: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:2538: cond_true: Condition "driver->cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2538: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2538: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2542: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupSetFreezerState(virCgroupPtr, char const *)". >libvirt-0.10.2/src/util/cgroup.c:1808:43: noescape: "virCgroupSetFreezerState(virCgroupPtr, char const *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:2545: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:2538: cond_true: Condition "driver->cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2538: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2538: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2540: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "esxVI_PhysicalNic_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"key")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"device")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"pci")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"driver")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"linkSpeed")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"validLinkSpecification")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: alloc_arg: "esxVI_PhysicalNicLinkInfo_Deserialize(xmlNodePtr, esxVI_PhysicalNicLinkInfo **)" allocates memory that is stored into "validLinkSpecificationItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: alloc_arg: "esxVI_PhysicalNicLinkInfo_Alloc(esxVI_PhysicalNicLinkInfo **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3609:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3609:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_PhysicalNicLinkInfo) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3609:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: cond_false: Condition "esxVI_PhysicalNicLinkInfo_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3640:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: cond_true: Condition "esxVI_PhysicalNicLinkInfo_Deserialize(childNode, &validLinkSpecificationItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3586: leaked_storage: Variable "validLinkSpecificationItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "name == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "esxVI_String_SerializeValue(name, "name", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(datacenter, "datacenter", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:731: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:13226: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13226: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13229: cond_false: Condition "!(vm = qemuDomObjFromDomain(dom))", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13233: cond_false: Condition "!virDomainObjIsActive(vm)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13237: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13238: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13238: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13238: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13244: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13247: cond_false: Condition "!device", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13249: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13251: cond_true: Condition "disk->mirror", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13255: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:13381: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:13382: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13384: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13385: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13387: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:1774: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1774: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1776: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "cpu_shares", VIR_TYPED_PARAM_ULLONG, "vcpu_period", VIR_TYPED_PARAM_ULLONG, "vcpu_quota", VIR_TYPED_PARAM_LLONG, NULL) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1790: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1794: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1796: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &vmdef) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1800: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1805: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1807: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1808: cond_false: Condition "!lxcCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1812: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1813: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1813: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1818: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1821: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1824: cond_false: Condition "__coverity_strcmp(param->field, "cpu_shares") == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1839: cond_true: Condition "__coverity_strcmp(param->field, "vcpu_period") == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1840: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1841: noescape: Resource "group" is not freed or pointed-to in function "lxcSetVcpuBWLive(virCgroupPtr, unsigned long long, long long)". >libvirt-0.10.2/src/lxc/lxc_driver.c:1711:42: noescape: "lxcSetVcpuBWLive(virCgroupPtr, unsigned long long, long long)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/lxc/lxc_driver.c:1842: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1845: cond_true: Condition "(params + i).value.ul", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1849: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1851: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1852: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1866: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_driver.c:1821: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:1821: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1824: cond_false: Condition "__coverity_strcmp(param->field, "cpu_shares") == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1839: cond_true: Condition "__coverity_strcmp(param->field, "vcpu_period") == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1840: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1841: noescape: Resource "group" is not freed or pointed-to in function "lxcSetVcpuBWLive(virCgroupPtr, unsigned long long, long long)". >libvirt-0.10.2/src/lxc/lxc_driver.c:1711:42: noescape: "lxcSetVcpuBWLive(virCgroupPtr, unsigned long long, long long)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/lxc/lxc_driver.c:1842: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1845: cond_true: Condition "(params + i).value.ul", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1849: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1851: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1852: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1866: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_driver.c:1821: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:1821: cond_false: Condition "i < nparams", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1866: loop_end: Reached end of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:1868: cond_false: Condition "virDomainSaveStatus(driver->caps, driver->stateDir, vm) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1872: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1879: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1886: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1889: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:1774: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1774: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1776: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "cpu_shares", VIR_TYPED_PARAM_ULLONG, "vcpu_period", VIR_TYPED_PARAM_ULLONG, "vcpu_quota", VIR_TYPED_PARAM_LLONG, NULL) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1790: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1794: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1796: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &vmdef) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1800: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1805: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1807: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1808: cond_false: Condition "!lxcCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1812: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1813: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1813: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1818: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:1821: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1824: cond_true: Condition "__coverity_strcmp(param->field, "cpu_shares") == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1825: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1826: noescape: Resource "group" is not freed or pointed-to in function "virCgroupSetCpuShares(virCgroupPtr, unsigned long long)". >libvirt-0.10.2/src/util/cgroup.c:1656:40: noescape: "virCgroupSetCpuShares(virCgroupPtr, unsigned long long)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:1827: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1830: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:1883: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:1886: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:1889: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: cond_false: Condition "pgName == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: cond_false: Condition "esxVI_String_SerializeValue(pgName, "pgName", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_None) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:526: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "priority == 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(pool, "pool", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(host, "host", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "esxVI_VirtualMachineMovePriority_Serialize(priority, "priority", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "esxVI_VirtualMachinePowerState_Serialize(state, "state", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_RequiredItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:304: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:204: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->autoDiskLeasePath, "__LIBVIRT__DISKS__") < 0", taking false branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:209: if_end: End of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:214: cond_false: Condition "!virStrcpy(ls.host_id_disk.path, path, 1024)", taking false branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:219: if_end: End of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:225: cond_true: Condition "stat(path, &st) < 0", taking true branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:229: alloc_fn: Storage is returned from allocation function "mdir_name(char const *)". >libvirt-0.10.2/gnulib/lib/dirname-lgpl.c:78:13: alloc_fn: Storage is returned from allocation function "malloc(size_t)". >libvirt-0.10.2/gnulib/lib/dirname-lgpl.c:78:13: var_assign: Assigning: "dir" = "malloc(length + append_dot + 1UL)". >libvirt-0.10.2/gnulib/lib/dirname-lgpl.c:79:3: cond_false: Condition "!dir", taking false branch >libvirt-0.10.2/gnulib/lib/dirname-lgpl.c:81:3: noescape: Resource "dir" is not freed or pointed-to in function "memcpy(void * restrict, void const * restrict, size_t)". >libvirt-0.10.2/gnulib/lib/dirname-lgpl.c:82:3: cond_true: Condition "append_dot", taking true branch >libvirt-0.10.2/gnulib/lib/dirname-lgpl.c:85:3: return_alloc: Returning allocated memory "dir". >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:229: var_assign: Assigning: "dir" = storage returned from "mdir_name(path)". >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:229: cond_false: Condition "!(dir = mdir_name(path))", taking false branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:232: if_end: End of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:233: noescape: Resource "dir" is not freed or pointed-to in function "stat(char const *, struct stat *)". >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:233: cond_false: Condition "stat(dir, &st) < 0", taking false branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:233: cond_false: Condition "!((st.st_mode & 61440) == 16384)", taking false branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:239: if_end: End of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:241: cond_true: Condition "driver->group != -1", taking true branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:244: cond_true: Condition "(fd = open(path, 193 /* (1 | 0x40) | 0x80 */, perms)) < 0", taking true branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:245: cond_false: Condition "*__errno_location() != 17", taking false branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:250: if_end: End of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:252: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:305: if_end: End of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:306: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:338: cond_true: Condition "(rv = sanlock_add_lockspace(&ls, 0)) < 0", taking true branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:339: cond_true: Condition "-rv == 115", taking true branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:355: cond_false: Condition "-rv != 17", taking false branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:365: else_branch: Reached else branch >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:368: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:370: if_end: End of if statement >libvirt-0.10.2/src/locking/lock_driver_sanlock.c:372: leaked_storage: Variable "dir" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:3991: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:3991: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:3998: cond_false: Condition "!vm", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4004: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4006: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4012: cond_false: Condition "vcpu > priv->nvcpupids - 1", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4017: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4020: cond_false: Condition "!pcpumap", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4026: cond_true: Condition "virBitmapIsAllSet(pcpumap)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4029: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4031: cond_false: Condition "priv->vcpupids == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4035: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4037: cond_true: Condition "vm->def->cputune.vcpupin", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4040: cond_false: Condition "!newVcpuPin", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4044: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4050: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4052: cond_false: Condition "virDomainVcpuPinAdd(&newVcpuPin, &newVcpuPinNum, cpumap, maplen, vcpu) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4057: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4060: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPUSET)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_dom". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup_dom, 0) == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: noescape: Resource "cgroup_dom" is not freed or pointed-to in function "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)". >libvirt-0.10.2/src/util/cgroup.c:1034:35: noescape: "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)" does not free or save its pointer parameter "driver". >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: cond_true: Condition "virCgroupForVcpu(cgroup_dom, vcpu, &cgroup_vcpu, 0) == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: cond_true: Condition "qemuSetupCgroupVcpuPin(cgroup_vcpu, newVcpuPin, newVcpuPinNum, vcpu) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4067: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:4136: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:4137: cond_true: Condition "cgroup_vcpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4139: cond_true: Condition "cgroup_dom", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4141: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4144: leaked_storage: Variable "cgroup_dom" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:3991: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:3991: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:3998: cond_false: Condition "!vm", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4004: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4006: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4012: cond_false: Condition "vcpu > priv->nvcpupids - 1", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4017: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4020: cond_false: Condition "!pcpumap", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4026: cond_true: Condition "virBitmapIsAllSet(pcpumap)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4029: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4031: cond_false: Condition "priv->vcpupids == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4035: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4037: cond_true: Condition "vm->def->cputune.vcpupin", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4040: cond_false: Condition "!newVcpuPin", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4044: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4050: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4052: cond_false: Condition "virDomainVcpuPinAdd(&newVcpuPin, &newVcpuPinNum, cpumap, maplen, vcpu) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4057: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:4060: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPUSET)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup_dom, 0) == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: alloc_arg: "virCgroupForVcpu(virCgroupPtr, int, virCgroupPtr *, int)" allocates memory that is stored into "cgroup_vcpu". >libvirt-0.10.2/src/util/cgroup.c:1042:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1045:5: cond_false: Condition "virAsprintf(&path, "%s/vcpu%d", driver->path, vcpuid) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1048:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:1049:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1051:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1052:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1053:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: cond_true: Condition "virCgroupForVcpu(cgroup_dom, vcpu, &cgroup_vcpu, 0) == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: noescape: Resource "cgroup_vcpu" is not freed or pointed-to in function "qemuSetupCgroupVcpuPin(virCgroupPtr, virDomainVcpuPinDefPtr *, int, int)". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:492:41: noescape: "qemuSetupCgroupVcpuPin(virCgroupPtr, virDomainVcpuPinDefPtr *, int, int)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_driver.c:4061: cond_true: Condition "qemuSetupCgroupVcpuPin(cgroup_vcpu, newVcpuPin, newVcpuPinNum, vcpu) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4067: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:4136: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:4137: cond_true: Condition "cgroup_vcpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4139: cond_true: Condition "cgroup_dom", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4141: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:4144: leaked_storage: Variable "cgroup_vcpu" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:8278: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8278: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8287: cond_true: Condition "*nparams > 1", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8289: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8291: cond_false: Condition "!!rc", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8291: cond_false: Condition "!!rc", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8296: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8300: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8302: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8306: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8315: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8317: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8321: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8323: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8323: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8327: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8329: noescape: Resource "group" is not freed or pointed-to in function "virCgroupGetCpuShares(virCgroupPtr, unsigned long long *)". >libvirt-0.10.2/src/util/cgroup.c:1663:40: noescape: "virCgroupGetCpuShares(virCgroupPtr, unsigned long long *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_driver.c:8330: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8333: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:8395: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:8397: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8400: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_cgroup.c:772: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:775: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:776: cond_false: Condition "rc != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:781: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_cgroup.c:783: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupAddTask(virCgroupPtr, pid_t)". >libvirt-0.10.2/src/util/cgroup.c:788:35: noescape: "virCgroupAddTask(virCgroupPtr, pid_t)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_cgroup.c:784: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_cgroup.c:788: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:793: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_cgroup.c:795: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7993: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7993: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7995: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "cpu_shares", VIR_TYPED_PARAM_ULLONG, "vcpu_period", VIR_TYPED_PARAM_ULLONG, "vcpu_quota", VIR_TYPED_PARAM_LLONG, "emulator_period", VIR_TYPED_PARAM_ULLONG, "emulator_quota", VIR_TYPED_PARAM_LLONG, NULL) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8013: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8017: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8019: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &vmdef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8023: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8028: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8030: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8031: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8035: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8036: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8036: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8041: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8044: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8049: cond_false: Condition "__coverity_strcmp(param->field, "cpu_shares") == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8062: cond_true: Condition "__coverity_strcmp(param->field, "vcpu_period") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8063: cond_true: Condition "value_ul > 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8063: cond_false: Condition "value_ul < 1000LL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8063: cond_false: Condition "value_ul > 1000000LL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8063: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8066: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8066: cond_true: Condition "value_ul", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8067: noescape: Resource "group" is not freed or pointed-to in function "qemuSetVcpusBWLive(virDomainObjPtr, virCgroupPtr, unsigned long long, long long)". >libvirt-0.10.2/src/qemu/qemu_driver.c:7894:53: noescape: "qemuSetVcpusBWLive(virDomainObjPtr, virCgroupPtr, unsigned long long, long long)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_driver.c:8067: cond_false: Condition "rc = qemuSetVcpusBWLive(vm, group, value_ul, 0)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8073: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8076: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8118: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_driver.c:8044: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:8044: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8049: cond_false: Condition "__coverity_strcmp(param->field, "cpu_shares") == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8062: cond_true: Condition "__coverity_strcmp(param->field, "vcpu_period") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8063: cond_false: Condition "value_ul > 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8063: cond_false: Condition "value_ul > 1000000LL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8063: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8066: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8066: cond_false: Condition "value_ul", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8071: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8073: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8076: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8118: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_driver.c:8044: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:8044: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8049: cond_false: Condition "__coverity_strcmp(param->field, "cpu_shares") == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8062: cond_false: Condition "__coverity_strcmp(param->field, "vcpu_period") == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8076: cond_true: Condition "__coverity_strcmp(param->field, "vcpu_quota") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8077: cond_true: Condition "value_l > 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8077: cond_false: Condition "value_l < 1000LL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8077: cond_false: Condition "value_l > 18446744073709551LL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8077: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8080: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8080: cond_true: Condition "value_l", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8081: noescape: Resource "group" is not freed or pointed-to in function "qemuSetVcpusBWLive(virDomainObjPtr, virCgroupPtr, unsigned long long, long long)". >libvirt-0.10.2/src/qemu/qemu_driver.c:7894:53: noescape: "qemuSetVcpusBWLive(virDomainObjPtr, virCgroupPtr, unsigned long long, long long)" does not free or save its pointer parameter "cgroup". >libvirt-0.10.2/src/qemu/qemu_driver.c:8081: cond_false: Condition "rc = qemuSetVcpusBWLive(vm, group, 0, value_l)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8087: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8090: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8118: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_driver.c:8044: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:8044: cond_false: Condition "i < nparams", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8118: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:8120: cond_false: Condition "virDomainSaveStatus(driver->caps, driver->stateDir, vm) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8124: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8131: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8138: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8141: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7993: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7993: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7995: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "cpu_shares", VIR_TYPED_PARAM_ULLONG, "vcpu_period", VIR_TYPED_PARAM_ULLONG, "vcpu_quota", VIR_TYPED_PARAM_LLONG, "emulator_period", VIR_TYPED_PARAM_ULLONG, "emulator_quota", VIR_TYPED_PARAM_LLONG, NULL) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8013: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8017: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8019: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &vmdef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8023: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8028: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8030: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8031: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPU)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8035: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8036: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8036: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8041: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:8044: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8049: cond_true: Condition "__coverity_strcmp(param->field, "cpu_shares") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8050: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8051: noescape: Resource "group" is not freed or pointed-to in function "virCgroupSetCpuShares(virCgroupPtr, unsigned long long)". >libvirt-0.10.2/src/util/cgroup.c:1656:40: noescape: "virCgroupSetCpuShares(virCgroupPtr, unsigned long long)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_driver.c:8051: cond_true: Condition "rc = virCgroupSetCpuShares(group, value_ul)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8054: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:8135: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:8138: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:8141: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: cond_true: Condition "driver->cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2406: cond_true: Condition "waited_time < timeout", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2415: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupSetFreezerState(virCgroupPtr, char const *)". >libvirt-0.10.2/src/util/cgroup.c:1808:43: noescape: "virCgroupSetFreezerState(virCgroupPtr, char const *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:2422: cond_true: Condition "r < 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2422: cond_false: Condition "r != -16", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2425: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2426: cond_true: Condition "r == -16", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2442: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupGetFreezerState(virCgroupPtr, char **)". >libvirt-0.10.2/src/util/cgroup.c:1815:43: noescape: "virCgroupGetFreezerState(virCgroupPtr, char **)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:2444: cond_true: Condition "r < 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2446: goto: Jumping to label "error" >libvirt-0.10.2/src/lxc/lxc_driver.c:2468: label: Reached label "error" >libvirt-0.10.2/src/lxc/lxc_driver.c:2474: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupSetFreezerState(virCgroupPtr, char const *)". >libvirt-0.10.2/src/util/cgroup.c:1808:43: noescape: "virCgroupSetFreezerState(virCgroupPtr, char const *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:2479: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2480: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: cond_true: Condition "driver->cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2406: cond_true: Condition "waited_time < timeout", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2415: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupSetFreezerState(virCgroupPtr, char const *)". >libvirt-0.10.2/src/util/cgroup.c:1808:43: noescape: "virCgroupSetFreezerState(virCgroupPtr, char const *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:2422: cond_true: Condition "r < 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2422: cond_true: Condition "r != -16", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2424: goto: Jumping to label "error" >libvirt-0.10.2/src/lxc/lxc_driver.c:2468: label: Reached label "error" >libvirt-0.10.2/src/lxc/lxc_driver.c:2474: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupSetFreezerState(virCgroupPtr, char const *)". >libvirt-0.10.2/src/util/cgroup.c:1808:43: noescape: "virCgroupSetFreezerState(virCgroupPtr, char const *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:2479: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2480: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: cond_true: Condition "driver->cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2400: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2402: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/conf/domain_conf.c:11670: cond_true: Condition "!def->cputune.emulatorpin", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:11672: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "emulatorpin". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:11672: cond_false: Condition "virAlloc(&emulatorpin, 16UL /* sizeof (*emulatorpin) */) < 0", taking false branch >libvirt-0.10.2/src/conf/domain_conf.c:11675: if_end: End of if statement >libvirt-0.10.2/src/conf/domain_conf.c:11679: cond_true: Condition "!emulatorpin->cpumask", taking true branch >libvirt-0.10.2/src/conf/domain_conf.c:11680: leaked_storage: Variable "emulatorpin" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "esxVI_HostVirtualSwitch_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"name")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"key")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"numPorts")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"numPortsAvailable")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"mtu")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"portgroup")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"pnic")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: alloc_arg: "esxVI_String_Deserialize(xmlNodePtr, esxVI_String **)" allocates memory that is stored into "pnicItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "string == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "*string != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1298:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "*string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_Alloc(string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_DeserializeValue(node, &(*string)->value) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1303:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_true: Condition "esxVI_String_Deserialize(childNode, &pnicItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: leaked_storage: Variable "pnicItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "esxVI_HostVirtualSwitch_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"name")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"key")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"numPorts")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"numPortsAvailable")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"mtu")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"portgroup")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: alloc_arg: "esxVI_String_Deserialize(xmlNodePtr, esxVI_String **)" allocates memory that is stored into "portgroupItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "string == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1295:5: cond_false: Condition "*string != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1298:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: alloc_arg: "esxVI_String_Alloc(esxVI_String **)" allocates memory that is stored into "*string". >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_String) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1134:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_Alloc(string) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1300:5: cond_false: Condition "esxVI_String_DeserializeValue(node, &(*string)->value) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1303:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: cond_true: Condition "esxVI_String_Deserialize(childNode, &portgroupItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:2266: leaked_storage: Variable "portgroupItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "esxVI_PerfEntityMetric_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"entity")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"sampleInfo")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"value")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: alloc_arg: "esxVI_PerfMetricSeries_Deserialize(xmlNodePtr, esxVI_PerfMetricSeries **)" allocates memory that is stored into "valueItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: cond_false: Condition "esxVI_GetActualObjectType(node, esxVI_Type_PerfMetricSeries, &type) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: switch: Switch case value "esxVI_Type_PerfMetricSeries" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: switch_case: Reached case "esxVI_Type_PerfMetricSeries" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: break: Breaking from switch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: switch_end: Reached end of switch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: alloc_arg: "esxVI_PerfMetricSeries_Alloc(esxVI_PerfMetricSeries **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3399:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3399:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 24UL /* sizeof (esxVI_PerfMetricSeries) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3399:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: cond_false: Condition "esxVI_PerfMetricSeries_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3429:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_true: Condition "esxVI_PerfMetricSeries_Deserialize(childNode, &valueItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: leaked_storage: Variable "valueItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "esxVI_PerfEntityMetric_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"entity")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"sampleInfo")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: alloc_arg: "esxVI_PerfSampleInfo_Deserialize(xmlNodePtr, esxVI_PerfSampleInfo **)" allocates memory that is stored into "sampleInfoItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: alloc_arg: "esxVI_PerfSampleInfo_Alloc(esxVI_PerfSampleInfo **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3494:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3494:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_PerfSampleInfo) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3494:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: cond_false: Condition "esxVI_PerfSampleInfo_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3516:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: cond_true: Condition "esxVI_PerfSampleInfo_Deserialize(childNode, &sampleInfoItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3225: leaked_storage: Variable "sampleInfoItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_false: Condition "counterId == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_false: Condition "esxVI_Int_SerializeList(counterId, "counterId", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_OptionalList) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:400: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/interface/interface_backend_netcf.c:279: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:279: if_end: End of if statement >libvirt-0.10.2/src/interface/interface_backend_netcf.c:289: cond_false: Condition "count < 0", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:298: if_end: End of if statement >libvirt-0.10.2/src/interface/interface_backend_netcf.c:300: cond_false: Condition "count == 0", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:303: if_end: End of if statement >libvirt-0.10.2/src/interface/interface_backend_netcf.c:305: cond_false: Condition "virAllocN(&names, 8UL /* sizeof (*names) */, count) < 0", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:309: if_end: End of if statement >libvirt-0.10.2/src/interface/interface_backend_netcf.c:311: cond_false: Condition "(count = ncf_list_interfaces(driver->netcf, count, names, 3U /* NETCF_IFACE_ACTIVE | NETCF_IFACE_INACTIVE */)) < 0", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:321: if_end: End of if statement >libvirt-0.10.2/src/interface/interface_backend_netcf.c:323: cond_true: Condition "ifaces", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:324: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "tmp_iface_objs". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:324: cond_false: Condition "virAllocN(&tmp_iface_objs, 8UL /* sizeof (*tmp_iface_objs) */, count + 1) < 0", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:327: if_end: End of if statement >libvirt-0.10.2/src/interface/interface_backend_netcf.c:330: cond_true: Condition "i < count", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:332: cond_true: Condition "!iface", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:335: cond_true: Condition "errcode != NETCF_NOERROR", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:336: cond_true: Condition "details", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:336: cond_true: Condition "details", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:340: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/interface/interface_backend_netcf.c:389: label: Reached label "cleanup" >libvirt-0.10.2/src/interface/interface_backend_netcf.c:392: cond_true: Condition "names", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:393: cond_true: Condition "i < count", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:394: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:393: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/interface/interface_backend_netcf.c:393: cond_true: Condition "i < count", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:394: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:393: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/interface/interface_backend_netcf.c:393: cond_false: Condition "i < count", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:395: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:397: cond_true: Condition "tmp_iface_objs", taking true branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:398: cond_false: Condition "i < niface_objs", taking false branch >libvirt-0.10.2/src/interface/interface_backend_netcf.c:401: loop_end: Reached end of loop >libvirt-0.10.2/src/interface/interface_backend_netcf.c:405: leaked_storage: Variable "tmp_iface_objs" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:851: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:851: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:856: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:862: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:864: cond_false: Condition "*nparams == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:869: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:871: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:871: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:875: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:877: cond_true: Condition "i < 3", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:877: cond_true: Condition "i < *nparams", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:881: switch: Switch case value "0" >libvirt-0.10.2/src/lxc/lxc_driver.c:882: switch_case: Reached case "0" >libvirt-0.10.2/src/lxc/lxc_driver.c:883: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupGetMemoryHardLimit(virCgroupPtr, unsigned long long *)". >libvirt-0.10.2/src/util/cgroup.c:1268:46: noescape: "virCgroupGetMemoryHardLimit(virCgroupPtr, unsigned long long *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:884: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:887: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:927: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:928: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:930: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:933: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:851: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:851: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:856: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:862: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:864: cond_false: Condition "*nparams == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:869: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:871: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:871: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:875: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:877: cond_true: Condition "i < 3", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:877: cond_false: Condition "i < *nparams", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:921: loop_end: Reached end of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:923: cond_false: Condition "*nparams > 3", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:928: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:930: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:933: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:530: cond_false: Condition "!vm", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:536: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:540: cond_false: Condition "!virDomainObjIsActive(vm)", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:540: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:543: else_branch: Reached else branch >libvirt-0.10.2/src/lxc/lxc_driver.c:544: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:544: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:548: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:550: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupGetCpuacctUsage(virCgroupPtr, unsigned long long *)". >libvirt-0.10.2/src/util/cgroup.c:1748:43: noescape: "virCgroupGetCpuacctUsage(virCgroupPtr, unsigned long long *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:550: cond_true: Condition "virCgroupGetCpuacctUsage(cgroup, &info->cpuTime) < 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:553: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:571: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:573: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:575: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:577: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/tools/virsh-network.c:791: cond_false: Condition "!(network = vshCommandOptNetworkBy(ctl, cmd, NULL, 12U /* VSH_BYUUID | VSH_BYNAME */))", taking false branch >libvirt-0.10.2/tools/virsh-network.c:794: cond_false: Condition "vshCommandOptString(cmd, "command", &commandStr) < 0", taking false branch >libvirt-0.10.2/tools/virsh-network.c:797: if_end: End of if statement >libvirt-0.10.2/tools/virsh-network.c:799: cond_true: Condition "__coverity_strcmp(commandStr, "add") == 0", taking true branch >libvirt-0.10.2/tools/virsh-network.c:802: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/tools/virsh-network.c:808: if_end: End of if statement >libvirt-0.10.2/tools/virsh-network.c:810: cond_false: Condition "vshCommandOptString(cmd, "section", §ionStr) < 0", taking false branch >libvirt-0.10.2/tools/virsh-network.c:813: if_end: End of if statement >libvirt-0.10.2/tools/virsh-network.c:815: cond_false: Condition "section <= 0", taking false branch >libvirt-0.10.2/tools/virsh-network.c:815: cond_false: Condition "section >= VIR_NETWORK_SECTION_LAST", taking false branch >libvirt-0.10.2/tools/virsh-network.c:818: if_end: End of if statement >libvirt-0.10.2/tools/virsh-network.c:820: cond_false: Condition "vshCommandOptInt(cmd, "parent-index", &parentIndex) < 0", taking false branch >libvirt-0.10.2/tools/virsh-network.c:823: if_end: End of if statement >libvirt-0.10.2/tools/virsh-network.c:832: cond_false: Condition "vshCommandOptString(cmd, "xml", &xml) < 0", taking false branch >libvirt-0.10.2/tools/virsh-network.c:835: if_end: End of if statement >libvirt-0.10.2/tools/virsh-network.c:837: cond_true: Condition "*xml != '<'", taking true branch >libvirt-0.10.2/tools/virsh-network.c:841: alloc_arg: "virFileReadAll(char const *, int, char **)" allocates memory that is stored into "xmlFromFile". >libvirt-0.10.2/src/util/util.c:456:5: cond_false: Condition "fd < 0", taking false branch >libvirt-0.10.2/src/util/util.c:459:5: if_end: End of if statement >libvirt-0.10.2/src/util/util.c:461:13: alloc_arg: "virFileReadLimFD(int, int, char **)" allocates memory that is stored into "*buf". >libvirt-0.10.2/src/util/util.c:435:5: cond_false: Condition "maxlen <= 0", taking false branch >libvirt-0.10.2/src/util/util.c:438:5: if_end: End of if statement >libvirt-0.10.2/src/util/util.c:439:5: alloc_fn: Storage is returned from allocation function "saferead_lim(int, size_t, size_t *)". >libvirt-0.10.2/src/util/util.c:391:5: cond_true: Condition "true", taking true branch >libvirt-0.10.2/src/util/util.c:395:9: cond_true: Condition "size + 8192 + 1 > alloc", taking true branch >libvirt-0.10.2/src/util/util.c:397:13: cond_true: Condition "alloc < size + 8192 + 1", taking true branch >libvirt-0.10.2/src/util/util.c:400:13: alloc_arg: "virReallocN(void *, size_t, size_t)" allocates memory that is stored into "buf". >libvirt-0.10.2/src/util/memory.c:156:5: cond_false: Condition "18446744073709551615UL /* (size_t)((sizeof (ptrdiff_t) <= sizeof (size_t)) ? -1 : -2) */ / size < count", taking false branch >libvirt-0.10.2/src/util/memory.c:159:5: if_end: End of if statement >libvirt-0.10.2/src/util/memory.c:160:5: alloc_fn: Storage is returned from allocation function "realloc(void *, size_t)". >libvirt-0.10.2/src/util/memory.c:160:5: var_assign: Assigning: "tmp" = "realloc(*((void **)ptrptr), size * count)". >libvirt-0.10.2/src/util/memory.c:161:5: cond_false: Condition "!tmp", taking false branch >libvirt-0.10.2/src/util/memory.c:163:5: var_assign: Assigning: "*((void **)ptrptr)" = "tmp". >libvirt-0.10.2/src/util/util.c:400:13: cond_false: Condition "virReallocN(&buf, 1UL /* sizeof (*buf) */, alloc) < 0", taking false branch >libvirt-0.10.2/src/util/util.c:403:13: if_end: End of if statement >libvirt-0.10.2/src/util/util.c:407:9: cond_true: Condition "size < max_len", taking true branch >libvirt-0.10.2/src/util/util.c:407:9: cond_true: Condition "((size < max_len) ? max_len - size : 0) < alloc - size - 1", taking true branch >libvirt-0.10.2/src/util/util.c:407:9: cond_true: Condition "size < max_len", taking true branch >libvirt-0.10.2/src/util/util.c:412:9: cond_true: Condition "count != requested", taking true branch >libvirt-0.10.2/src/util/util.c:414:13: cond_false: Condition "count < 0", taking false branch >libvirt-0.10.2/src/util/util.c:418:13: return_alloc: Returning allocated memory "buf". >libvirt-0.10.2/src/util/util.c:439:5: var_assign: Assigning: "s" = "saferead_lim(fd, maxlen + 1, &len)". >libvirt-0.10.2/src/util/util.c:440:5: cond_false: Condition "s == NULL", taking false branch >libvirt-0.10.2/src/util/util.c:442:5: cond_false: Condition "len > maxlen", taking false branch >libvirt-0.10.2/src/util/util.c:442:5: cond_false: Condition "(int)len != len", taking false branch >libvirt-0.10.2/src/util/util.c:448:5: if_end: End of if statement >libvirt-0.10.2/src/util/util.c:449:5: var_assign: Assigning: "*buf" = "s". >libvirt-0.10.2/src/util/util.c:463:5: cond_false: Condition "len < 0", taking false branch >libvirt-0.10.2/src/util/util.c:466:5: if_end: End of if statement >libvirt-0.10.2/tools/virsh-network.c:841: cond_false: Condition "virFileReadAll(xml, 10485760 /* 10 * 1024 * 1024 */, &xmlFromFile) < 0", taking false branch >libvirt-0.10.2/tools/virsh-network.c:847: var_assign: Assigning: "xml" = "xmlFromFile". >libvirt-0.10.2/tools/virsh-network.c:850: cond_true: Condition "current", taking true branch >libvirt-0.10.2/tools/virsh-network.c:851: cond_true: Condition "live", taking true branch >libvirt-0.10.2/tools/virsh-network.c:853: leaked_storage: Variable "xmlFromFile" going out of scope leaks the storage it points to. >libvirt-0.10.2/tools/virsh-network.c:853: leaked_storage: Variable "xml" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "entity == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(entity, "entity", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "esxVI_DateTime_Serialize(beginTime, "beginTime", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "esxVI_DateTime_Serialize(endTime, "endTime", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "esxVI_Int_Serialize(intervalId, "intervalId", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_OptionalList) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:360: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:6976: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6976: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:6978: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "weight", VIR_TYPED_PARAM_UINT, "device_weight", VIR_TYPED_PARAM_STRING, NULL) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6989: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6993: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:6995: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:6999: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7000: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_BLKIO)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7004: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7006: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7006: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7011: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7015: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7016: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7020: cond_true: Condition "__coverity_strcmp(param->field, "weight") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7021: cond_true: Condition "(params + i).value.ui > 1000", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7025: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7016: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7020: cond_true: Condition "__coverity_strcmp(param->field, "weight") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7021: cond_true: Condition "(params + i).value.ui > 1000", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7025: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7016: cond_false: Condition "i < nparams", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7067: cond_true: Condition "ret < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7068: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7108: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7110: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7113: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7322: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7322: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7325: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "hard_limit", VIR_TYPED_PARAM_ULLONG, "soft_limit", VIR_TYPED_PARAM_ULLONG, "swap_hard_limit", VIR_TYPED_PARAM_ULLONG, NULL) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7339: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7343: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7345: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7349: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7350: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_MEMORY)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7354: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7356: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7356: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7360: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7364: cond_true: Condition "__coverity_strcmp((params + i).field, "hard_limit") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7367: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7371: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7364: cond_true: Condition "__coverity_strcmp((params + i).field, "hard_limit") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7367: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7371: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7364: cond_true: Condition "__coverity_strcmp((params + i).field, "hard_limit") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7367: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7371: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7364: cond_false: Condition "__coverity_strcmp((params + i).field, "hard_limit") == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7367: cond_true: Condition "__coverity_strcmp((params + i).field, "swap_hard_limit") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7371: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7363: cond_false: Condition "i < nparams", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7371: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7374: cond_true: Condition "swap_hard_limit", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7374: cond_true: Condition "hard_limit", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7374: cond_true: Condition "hard_limit->value.ul > swap_hard_limit->value.ul", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7379: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7463: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7465: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7468: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:13441: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13441: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13443: cond_false: Condition "!(vm = qemuDomObjFromDomain(dom))", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13447: cond_false: Condition "qemuDomainObjBeginJob(driver, vm, QEMU_JOB_MODIFY) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13450: cond_false: Condition "!virDomainObjIsActive(vm)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13454: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13455: cond_false: Condition "!qemuCapsGet(priv->caps, QEMU_CAPS_BLOCK_COMMIT)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13459: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13462: cond_false: Condition "!device", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13466: cond_false: Condition "!disk->src", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13471: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13472: cond_false: Condition "qemuDomainDetermineDiskChain(driver, disk, false /* 0 */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13475: cond_true: Condition "!top", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13478: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13487: cond_false: Condition "!top_meta", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13487: cond_false: Condition "!top_meta->backingStore", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13492: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13493: cond_true: Condition "!base", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13493: cond_true: Condition "flags & VIR_DOMAIN_BLOCK_COMMIT_SHALLOW", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13495: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13506: cond_true: Condition "flags & VIR_DOMAIN_BLOCK_COMMIT_SHALLOW", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13506: cond_false: Condition "base_canon != top_meta->backingStore", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13513: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13522: cond_true: Condition "qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_DEVICES)", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13522: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13522: cond_true: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13527: goto: Jumping to label "endjob" >libvirt-0.10.2/src/qemu/qemu_driver.c:13544: label: Reached label "endjob" >libvirt-0.10.2/src/qemu/qemu_driver.c:13545: cond_true: Condition "ret < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13545: cond_false: Condition "clean_access", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13553: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:13554: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13556: cond_true: Condition "qemuDomainObjEndJob(driver, vm) == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13558: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:13561: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:13562: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13563: cond_false: Condition "vm", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:13565: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/security/security_selinux.c:1026: cond_false: Condition "disk_seclabel", taking false branch >libvirt-0.10.2/src/security/security_selinux.c:1029: cond_false: Condition "disk_seclabel", taking false branch >libvirt-0.10.2/src/security/security_selinux.c:1032: cond_false: Condition "depth == 0", taking false branch >libvirt-0.10.2/src/security/security_selinux.c:1043: else_branch: Reached else branch >libvirt-0.10.2/src/security/security_selinux.c:1046: cond_true: Condition "ret == 1", taking true branch >libvirt-0.10.2/src/security/security_selinux.c:1046: cond_true: Condition "!disk_seclabel", taking true branch >libvirt-0.10.2/src/security/security_selinux.c:1049: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "disk_seclabel". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/security/security_selinux.c:1049: cond_false: Condition "virAlloc(&disk_seclabel, 24UL /* sizeof (*disk_seclabel) */) < 0", taking false branch >libvirt-0.10.2/src/security/security_selinux.c:1052: if_end: End of if statement >libvirt-0.10.2/src/security/security_selinux.c:1056: leaked_storage: Variable "disk_seclabel" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:772: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:772: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:773: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "hard_limit", VIR_TYPED_PARAM_ULLONG, "soft_limit", VIR_TYPED_PARAM_ULLONG, "swap_hard_limit", VIR_TYPED_PARAM_ULLONG, NULL) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:786: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:792: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:794: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:794: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:798: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:801: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:804: cond_true: Condition "__coverity_strcmp(param->field, "hard_limit") == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:805: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupSetMemoryHardLimit(virCgroupPtr, unsigned long long)". >libvirt-0.10.2/src/util/cgroup.c:1255:46: noescape: "virCgroupSetMemoryHardLimit(virCgroupPtr, unsigned long long)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:806: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:811: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:826: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_driver.c:801: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:801: cond_false: Condition "i < nparams", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:826: loop_end: Reached end of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:829: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:831: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:834: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:772: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:772: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:773: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "hard_limit", VIR_TYPED_PARAM_ULLONG, "soft_limit", VIR_TYPED_PARAM_ULLONG, "swap_hard_limit", VIR_TYPED_PARAM_ULLONG, NULL) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:786: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:792: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:794: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:794: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:798: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:801: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:804: cond_false: Condition "__coverity_strcmp(param->field, "hard_limit") == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:811: cond_false: Condition "__coverity_strcmp(param->field, "soft_limit") == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:818: cond_false: Condition "__coverity_strcmp(param->field, "swap_hard_limit") == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:825: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:826: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/lxc/lxc_driver.c:801: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:801: cond_false: Condition "i < nparams", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:826: loop_end: Reached end of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:829: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:831: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:834: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:711: cond_false: Condition "!vm", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:717: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:719: cond_false: Condition "newmem > vm->def->mem.max_balloon", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:723: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:725: cond_false: Condition "!virDomainObjIsActive(vm)", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:729: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:731: cond_false: Condition "driver->cgroup == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:735: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:737: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "cgroup". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:737: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &cgroup, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:741: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:743: noescape: Resource "cgroup" is not freed or pointed-to in function "virCgroupSetMemory(virCgroupPtr, unsigned long long)". >libvirt-0.10.2/src/util/cgroup.c:1209:37: noescape: "virCgroupSetMemory(virCgroupPtr, unsigned long long)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:743: cond_true: Condition "virCgroupSetMemory(cgroup, newmem) < 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:746: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:751: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:752: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:754: cond_true: Condition "cgroup", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:756: leaked_storage: Variable "cgroup" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7644: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7644: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7646: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "numa_mode", VIR_TYPED_PARAM_INT, "numa_nodeset", VIR_TYPED_PARAM_STRING, NULL) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7658: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7662: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7664: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7668: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7669: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPUSET)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7673: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7675: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7680: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7684: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7687: cond_true: Condition "__coverity_strcmp(param->field, "numa_mode") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7688: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7688: cond_false: Condition "vm->def->numatune.memory.mode != (params + i).value.i", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7694: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7696: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7699: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7684: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7684: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7687: cond_true: Condition "__coverity_strcmp(param->field, "numa_mode") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7688: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7688: cond_false: Condition "vm->def->numatune.memory.mode != (params + i).value.i", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7694: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7696: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7699: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7684: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7684: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7687: cond_false: Condition "__coverity_strcmp(param->field, "numa_mode") == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7699: cond_true: Condition "__coverity_strcmp(param->field, "numa_nodeset") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7704: cond_true: Condition "virBitmapParse((params + i).value.s, 0, &nodeset, 1024) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7710: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7684: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7687: cond_false: Condition "__coverity_strcmp(param->field, "numa_mode") == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7699: cond_true: Condition "__coverity_strcmp(param->field, "numa_nodeset") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7704: alloc_arg: "virBitmapParse(char const *, char, virBitmapPtr *, size_t)" allocates memory that is stored into "nodeset". >libvirt-0.10.2/src/util/bitmap.c:291:5: cond_false: Condition "!str", taking false branch >libvirt-0.10.2/src/util/bitmap.c:297:5: cond_false: Condition "*cur == 0", taking false branch >libvirt-0.10.2/src/util/bitmap.c:300:5: alloc_fn: Storage is returned from allocation function "virBitmapNew(size_t)". >libvirt-0.10.2/src/util/bitmap.c:67:5: cond_false: Condition "18446744073709551551UL /* 18446744073709551615UL - (int)sizeof (unsigned long) * 8 */ < size", taking false branch >libvirt-0.10.2/src/util/bitmap.c:67:5: cond_false: Condition "size == 0", taking false branch >libvirt-0.10.2/src/util/bitmap.c:73:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "bitmap". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/bitmap.c:73:5: cond_false: Condition "virAlloc(&bitmap, 24UL /* sizeof (*bitmap) */) < 0", taking false branch >libvirt-0.10.2/src/util/bitmap.c:76:5: cond_false: Condition "virAllocN(&bitmap->map, 8UL /* sizeof (*bitmap->map) */, sz) < 0", taking false branch >libvirt-0.10.2/src/util/bitmap.c:79:5: if_end: End of if statement >libvirt-0.10.2/src/util/bitmap.c:83:5: return_alloc: Returning allocated memory "bitmap". >libvirt-0.10.2/src/util/bitmap.c:300:5: var_assign: Assigning: "*bitmap" = "virBitmapNew(bitmapSize)". >libvirt-0.10.2/src/util/bitmap.c:301:5: cond_false: Condition "!*bitmap", taking false branch >libvirt-0.10.2/src/util/bitmap.c:304:5: cond_true: Condition "*cur != 0", taking true branch >libvirt-0.10.2/src/util/bitmap.c:304:5: cond_true: Condition "*cur != sep", taking true branch >libvirt-0.10.2/src/util/bitmap.c:311:9: cond_true: Condition "*cur == '^'", taking true branch >libvirt-0.10.2/src/util/bitmap.c:316:14: cond_true: Condition "__c >= 48", taking true branch >libvirt-0.10.2/src/util/bitmap.c:316:14: cond_true: Condition "__c <= 57", taking true branch >libvirt-0.10.2/src/util/bitmap.c:316:9: cond_false: Condition "!({...})", taking false branch >libvirt-0.10.2/src/util/bitmap.c:319:9: cond_false: Condition "virStrToLong_i(cur, &tmp, 10, &start) < 0", taking false branch >libvirt-0.10.2/src/util/bitmap.c:321:9: cond_false: Condition "start < 0", taking false branch >libvirt-0.10.2/src/util/bitmap.c:328:9: cond_true: Condition "*cur == ','", taking true branch >libvirt-0.10.2/src/util/bitmap.c:329:13: cond_true: Condition "neg", taking true branch >libvirt-0.10.2/src/util/bitmap.c:330:17: cond_true: Condition "virBitmapIsSet(*bitmap, start)", taking true branch >libvirt-0.10.2/src/util/bitmap.c:334:13: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/bitmap.c:339:13: if_end: End of if statement >libvirt-0.10.2/src/util/bitmap.c:340:9: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/bitmap.c:364:9: cond_true: Condition "*cur == ','", taking true branch >libvirt-0.10.2/src/util/bitmap.c:368:9: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/bitmap.c:373:5: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/util/bitmap.c:304:5: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/util/bitmap.c:304:5: cond_true: Condition "*cur != 0", taking true branch >libvirt-0.10.2/src/util/bitmap.c:304:5: cond_false: Condition "*cur != sep", taking false branch >libvirt-0.10.2/src/util/bitmap.c:373:5: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7704: cond_true: Condition "virBitmapParse((params + i).value.s, 0, &nodeset, 1024) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7710: continue: Continuing loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7710: leaked_storage: Variable "nodeset" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7644: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7644: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7646: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "numa_mode", VIR_TYPED_PARAM_INT, "numa_nodeset", VIR_TYPED_PARAM_STRING, NULL) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7658: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7662: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7664: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7668: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7669: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPUSET)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7673: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7675: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7675: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7680: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7684: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7687: cond_true: Condition "__coverity_strcmp(param->field, "numa_mode") == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7688: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7688: cond_true: Condition "vm->def->numatune.memory.mode != (params + i).value.i", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7693: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7772: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7774: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7777: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/storage/storage_driver.c:1175: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/storage/storage_driver.c:1175: if_end: End of if statement >libvirt-0.10.2/src/storage/storage_driver.c:1181: cond_false: Condition "!obj", taking false branch >libvirt-0.10.2/src/storage/storage_driver.c:1185: if_end: End of if statement >libvirt-0.10.2/src/storage/storage_driver.c:1187: cond_false: Condition "!virStoragePoolObjIsActive(obj)", taking false branch >libvirt-0.10.2/src/storage/storage_driver.c:1191: if_end: End of if statement >libvirt-0.10.2/src/storage/storage_driver.c:1194: cond_false: Condition "!vols", taking false branch >libvirt-0.10.2/src/storage/storage_driver.c:1197: if_end: End of if statement >libvirt-0.10.2/src/storage/storage_driver.c:1199: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "tmp_vols". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/storage/storage_driver.c:1199: cond_false: Condition "virAllocN(&tmp_vols, 8UL /* sizeof (*tmp_vols) */, obj->volumes.count + 1) < 0", taking false branch >libvirt-0.10.2/src/storage/storage_driver.c:1202: if_end: End of if statement >libvirt-0.10.2/src/storage/storage_driver.c:1204: cond_true: Condition "i < obj->volumes.count", taking true branch >libvirt-0.10.2/src/storage/storage_driver.c:1205: cond_true: Condition "!(vol = virGetStorageVol(pool->conn, obj->def->name, obj->volumes.objs[i]->name, obj->volumes.objs[i]->key))", taking true branch >libvirt-0.10.2/src/storage/storage_driver.c:1208: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/storage/storage_driver.c:1216: label: Reached label "cleanup" >libvirt-0.10.2/src/storage/storage_driver.c:1217: cond_true: Condition "tmp_vols", taking true branch >libvirt-0.10.2/src/storage/storage_driver.c:1218: cond_false: Condition "i < nvols", taking false branch >libvirt-0.10.2/src/storage/storage_driver.c:1221: loop_end: Reached end of loop >libvirt-0.10.2/src/storage/storage_driver.c:1224: cond_true: Condition "obj", taking true branch >libvirt-0.10.2/src/storage/storage_driver.c:1227: leaked_storage: Variable "tmp_vols" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7485: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7485: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7496: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7500: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7502: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7506: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7507: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_MEMORY)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7511: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7513: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7513: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7517: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7520: cond_false: Condition "*nparams == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7525: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7527: cond_false: Condition "flags & VIR_DOMAIN_AFFECT_CONFIG", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7562: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7564: cond_true: Condition "i < *nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7564: cond_true: Condition "i < 3", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7569: cond_true: Condition "group", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7571: switch: Switch case value "0" >libvirt-0.10.2/src/qemu/qemu_driver.c:7572: switch_case: Reached case "0" >libvirt-0.10.2/src/qemu/qemu_driver.c:7573: noescape: Resource "group" is not freed or pointed-to in function "virCgroupGetMemoryHardLimit(virCgroupPtr, unsigned long long *)". >libvirt-0.10.2/src/util/cgroup.c:1268:46: noescape: "virCgroupGetMemoryHardLimit(virCgroupPtr, unsigned long long *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_driver.c:7574: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7577: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7622: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7623: cond_true: Condition "group", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7625: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7628: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7485: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7485: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7496: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7500: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7502: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7506: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7507: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_MEMORY)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7511: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7513: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7513: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7517: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7520: cond_true: Condition "*nparams == 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7524: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7622: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7623: cond_true: Condition "group", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7625: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7628: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:14454: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14454: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14459: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14463: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14466: cond_false: Condition "!isActive", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14470: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14472: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPUACCT)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14476: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14478: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14478: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14482: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14484: cond_false: Condition "start_cpu == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14487: noescape: Resource "group" is not freed or pointed-to in function "qemuDomainGetPercpuStats(virDomainPtr, virDomainObjPtr, virCgroupPtr, virTypedParameterPtr, unsigned int, int, unsigned int)". >libvirt-0.10.2/src/qemu/qemu_driver.c:14314:39: noescape: "qemuDomainGetPercpuStats(virDomainPtr, virDomainObjPtr, virCgroupPtr, virTypedParameterPtr, unsigned int, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_driver.c:14491: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14494: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:14454: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14454: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14459: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14463: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14466: cond_false: Condition "!isActive", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14470: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14472: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_CPUACCT)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14476: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14478: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14478: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14482: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:14484: cond_true: Condition "start_cpu == -1", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14485: noescape: Resource "group" is not freed or pointed-to in function "qemuDomainGetTotalcpuStats(virCgroupPtr, virTypedParameterPtr, int)". >libvirt-0.10.2/src/qemu/qemu_driver.c:14204:41: noescape: "qemuDomainGetTotalcpuStats(virCgroupPtr, virTypedParameterPtr, int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_driver.c:14491: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:14494: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_driver.c:939: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:939: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_driver.c:942: cond_false: Condition "conn->uri == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:942: cond_false: Condition "conn->uri->scheme == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:944: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_driver.c:949: cond_true: Condition "plus == NULL", taking true branch >libvirt-0.10.2/src/esx/esx_driver.c:950: cond_false: Condition "c_strcasecmp(conn->uri->scheme, "vpx") != 0", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:954: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_driver.c:955: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/esx/esx_driver.c:967: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_driver.c:969: cond_false: Condition "c_strcasecmp(conn->uri->scheme, "vpx") != 0", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:973: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_driver.c:976: cond_false: Condition "conn->uri->server == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:980: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_driver.c:983: cond_false: Condition "auth == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:983: cond_false: Condition "auth->cb == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:987: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_driver.c:990: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "priv". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:990: cond_false: Condition "virAlloc(&priv, 56UL /* sizeof (*priv) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_driver.c:993: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_driver.c:995: cond_true: Condition "esxUtil_ParseUri(&priv->parsedUri, conn->uri) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_driver.c:996: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_driver.c:1099: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_driver.c:1100: cond_true: Condition "result == VIR_DRV_OPEN_ERROR", taking true branch >libvirt-0.10.2/src/esx/esx_driver.c:1104: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_driver.c:1106: leaked_storage: Variable "priv" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: cond_false: Condition "esxVI_ObjectContent_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"obj")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"propSet")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: alloc_arg: "esxVI_DynamicProperty_Deserialize(xmlNodePtr, esxVI_DynamicProperty **)" allocates memory that is stored into "propSetItem". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: alloc_arg: "esxVI_DynamicProperty_Alloc(esxVI_DynamicProperty **)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:644:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:644:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 32UL /* sizeof (esxVI_DynamicProperty) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:644:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: cond_false: Condition "esxVI_DynamicProperty_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: cond_true: Condition "childNode->type != XML_ELEMENT_NODE", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:676:1: label: Reached label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: cond_true: Condition "esxVI_DynamicProperty_Deserialize(childNode, &propSetItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3004: leaked_storage: Variable "propSetItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "esxVI_PerfCounterInfo_Alloc(ptrptr) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_true: Condition "childNode != NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "childNode->type != XML_ELEMENT_NODE", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"key")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"nameInfo")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"groupInfo")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"unitInfo")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"rollupType")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"statsType")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_false: Condition "xmlStrEqual(childNode->name, (xmlChar *)"level")", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_true: Condition "xmlStrEqual(childNode->name, (xmlChar *)"associatedCounterId")", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: alloc_arg: "esxVI_Int_Deserialize(xmlNodePtr, esxVI_Int **)" allocates memory that is stored into "associatedCounterIdItem". >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: cond_false: Condition "number == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: cond_false: Condition "*number != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: alloc_arg: "esxVI_Int_Alloc(esxVI_Int **)" allocates memory that is stored into "*number". >libvirt-0.10.2/src/esx/esx_vi_types.c:1389:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1389:1: cond_false: Condition "esxVI_Alloc((void **)ptrptr, 16UL /* sizeof (esxVI_Int) */) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1389:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: cond_false: Condition "esxVI_Int_Alloc(number) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: cond_true: Condition "string == NULL", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.c:1421:1: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: cond_true: Condition "esxVI_Int_Deserialize(childNode, &associatedCounterIdItem) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: goto: Jumping to label "failure" >libvirt-0.10.2/src/esx/esx_vi_types.generated.c:3165: leaked_storage: Variable "associatedCounterIdItem" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7795: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7795: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7808: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7812: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7814: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7818: cond_false: Condition "*nparams == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7822: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7824: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7825: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_MEMORY)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7829: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7831: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7831: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7836: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7839: cond_true: Condition "i < 2", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7839: cond_true: Condition "i < *nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7842: switch: Switch case value "0" >libvirt-0.10.2/src/qemu/qemu_driver.c:7843: switch_case: Reached case "0" >libvirt-0.10.2/src/qemu/qemu_driver.c:7844: cond_true: Condition "virTypedParameterAssign(param, "numa_mode", VIR_TYPED_PARAM_INT, 0) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7846: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7884: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7885: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7887: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7890: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/remote/remote_driver.c:4759: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "cbdata". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:4759: cond_false: Condition "virAlloc(&cbdata, 32UL /* sizeof (*cbdata) */) < 0", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:4762: if_end: End of if statement >libvirt-0.10.2/src/remote/remote_driver.c:4771: cond_false: Condition "(ret = virNetClientStreamEventAddCallback(privst, events, remoteStreamEventCallback(virNetClientStreamPtr, int, void *), cbdata, remoteStreamCallbackFree(void *))) < 0", taking false branch >libvirt-0.10.2/src/remote/remote_driver.c:4778: if_end: End of if statement >libvirt-0.10.2/src/remote/remote_driver.c:4782: leaked_storage: Variable "cbdata" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7131: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7131: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7143: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7147: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7149: cond_false: Condition "*nparams == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7154: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7156: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7160: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7161: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_BLKIO)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7165: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7167: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7167: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7171: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7174: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7175: cond_true: Condition "i < *nparams", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7175: cond_true: Condition "i < 2", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7179: switch: Switch case value "0" >libvirt-0.10.2/src/qemu/qemu_driver.c:7180: switch_case: Reached case "0" >libvirt-0.10.2/src/qemu/qemu_driver.c:7181: noescape: Resource "group" is not freed or pointed-to in function "virCgroupGetBlkioWeight(virCgroupPtr, unsigned int *)". >libvirt-0.10.2/src/util/cgroup.c:1138:42: noescape: "virCgroupGetBlkioWeight(virCgroupPtr, unsigned int *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/qemu/qemu_driver.c:7182: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7185: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7293: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_driver.c:7294: cond_true: Condition "group", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7296: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7299: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/qemu/qemu_driver.c:7131: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7131: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7143: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7147: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7149: cond_false: Condition "*nparams == 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7154: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7156: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7160: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7161: cond_false: Condition "!qemuCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_BLKIO)", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7165: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7167: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7167: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7171: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7174: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7175: cond_false: Condition "i < *nparams", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7224: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_driver.c:7225: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/qemu/qemu_driver.c:7289: cond_false: Condition "2 < *nparams", taking false branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7294: cond_true: Condition "group", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7296: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/qemu/qemu_driver.c:7299: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:2137: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2137: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2143: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2147: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2149: cond_false: Condition "*nparams == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2154: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2156: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2160: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2161: cond_false: Condition "!lxcCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_BLKIO)", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2165: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2167: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2167: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2171: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2173: cond_true: Condition "i < *nparams", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2173: cond_true: Condition "i < 1", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2177: switch: Switch case value "0" >libvirt-0.10.2/src/lxc/lxc_driver.c:2178: switch_case: Reached case "0" >libvirt-0.10.2/src/lxc/lxc_driver.c:2179: noescape: Resource "group" is not freed or pointed-to in function "virCgroupGetBlkioWeight(virCgroupPtr, unsigned int *)". >libvirt-0.10.2/src/util/cgroup.c:1138:42: noescape: "virCgroupGetBlkioWeight(virCgroupPtr, unsigned int *)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/lxc/lxc_driver.c:2180: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2183: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:2218: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:2219: cond_true: Condition "group", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2221: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2224: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:2137: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2137: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2143: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2147: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2149: cond_false: Condition "*nparams == 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2154: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2156: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2160: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2161: cond_false: Condition "!lxcCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_BLKIO)", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2165: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2167: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2167: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2171: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2173: cond_false: Condition "i < *nparams", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2194: loop_end: Reached end of loop >libvirt-0.10.2/src/lxc/lxc_driver.c:2195: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2214: cond_false: Condition "1 < *nparams", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2219: cond_true: Condition "group", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2221: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2224: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_false: Condition "ctx->service == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_false: Condition "output == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_false: Condition "*output != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_false: Condition "_this == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_false: Condition "querySpec == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_false: Condition "esxVI_ManagedObjectReference_Serialize(_this, "_this", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_false: Condition "esxVI_PerfQuerySpec_SerializeList(querySpec, "querySpec", &buffer) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_false: Condition "virBufferError(&buffer)", taking false branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: alloc_arg: "esxVI_Context_Execute(esxVI_Context *, char const *, char const *, esxVI_Response **, esxVI_Occurrence)" allocates memory that is stored into "response". >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "request == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "response == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1256:5: cond_false: Condition "*response != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1259:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: alloc_arg: "esxVI_Response_Alloc(esxVI_Response **)" allocates memory that is stored into "*response". >libvirt-0.10.2/src/esx/esx_vi.c:1440:1: alloc_arg: "esxVI_Alloc(void **, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "ptrptr == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1767:5: cond_false: Condition "*ptrptr != NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1770:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "*ptrptr". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1772:5: cond_false: Condition "virAllocN(ptrptr, size, 1) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1775:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1261:5: cond_false: Condition "esxVI_Response_Alloc(response) < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1263:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1278:5: cond_false: Condition "(*response)->responseCode < 0", taking false branch >libvirt-0.10.2/src/esx/esx_vi.c:1280:5: if_end: End of if statement >libvirt-0.10.2/src/esx/esx_vi.c:1282:5: cond_true: Condition "virBufferError(&buffer)", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1284:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1420:3: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi.c:1421:5: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi.c:1427:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_true: Condition "esxVI_Context_Execute(ctx, methodName, request, &response, esxVI_Occurrence_OptionalList) < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: label: Reached label "cleanup" >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_true: Condition "result < 0", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/esx/esx_vi_methods.generated.c:383: leaked_storage: Variable "response" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/test/test_driver.c:4638: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/test/test_driver.c:4638: if_end: End of if statement >libvirt-0.10.2/src/test/test_driver.c:4644: cond_false: Condition "!pool", taking false branch >libvirt-0.10.2/src/test/test_driver.c:4648: if_end: End of if statement >libvirt-0.10.2/src/test/test_driver.c:4650: cond_false: Condition "!virStoragePoolObjIsActive(pool)", taking false branch >libvirt-0.10.2/src/test/test_driver.c:4654: if_end: End of if statement >libvirt-0.10.2/src/test/test_driver.c:4657: cond_false: Condition "!vols", taking false branch >libvirt-0.10.2/src/test/test_driver.c:4660: if_end: End of if statement >libvirt-0.10.2/src/test/test_driver.c:4662: alloc_arg: "virAllocN(void *, size_t, size_t)" allocates memory that is stored into "tmp_vols". >libvirt-0.10.2/src/util/memory.c:128:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:128:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(count, size)". >libvirt-0.10.2/src/util/memory.c:129:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/test/test_driver.c:4662: cond_false: Condition "virAllocN(&tmp_vols, 8UL /* sizeof (*tmp_vols) */, pool->volumes.count + 1) < 0", taking false branch >libvirt-0.10.2/src/test/test_driver.c:4665: if_end: End of if statement >libvirt-0.10.2/src/test/test_driver.c:4667: cond_true: Condition "i < pool->volumes.count", taking true branch >libvirt-0.10.2/src/test/test_driver.c:4668: cond_true: Condition "!(vol = virGetStorageVol(obj->conn, pool->def->name, pool->volumes.objs[i]->name, pool->volumes.objs[i]->key))", taking true branch >libvirt-0.10.2/src/test/test_driver.c:4671: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/test/test_driver.c:4679: label: Reached label "cleanup" >libvirt-0.10.2/src/test/test_driver.c:4680: cond_true: Condition "tmp_vols", taking true branch >libvirt-0.10.2/src/test/test_driver.c:4681: cond_false: Condition "i < nvols", taking false branch >libvirt-0.10.2/src/test/test_driver.c:4684: loop_end: Reached end of loop >libvirt-0.10.2/src/test/test_driver.c:4687: cond_true: Condition "pool", taking true branch >libvirt-0.10.2/src/test/test_driver.c:4690: leaked_storage: Variable "tmp_vols" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK (CWE-404): >libvirt-0.10.2/src/lxc/lxc_driver.c:2033: cond_false: Condition "__unsuppflags", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2033: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2035: cond_false: Condition "virTypedParameterArrayValidate(params, nparams, "weight", VIR_TYPED_PARAM_UINT, NULL) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2045: cond_false: Condition "vm == NULL", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2049: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2051: cond_false: Condition "virDomainLiveConfigHelperMethod(driver->caps, vm, &flags, &persistentDef) < 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2055: cond_true: Condition "flags & VIR_DOMAIN_AFFECT_LIVE", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2056: cond_false: Condition "!lxcCgroupControllerActive(driver, VIR_CGROUP_CONTROLLER_BLKIO)", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2060: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2062: alloc_arg: "virCgroupForDomain(virCgroupPtr, char const *, virCgroupPtr *, int)" allocates memory that is stored into "group". >libvirt-0.10.2/src/util/cgroup.c:987:5: cond_false: Condition "driver == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:990:5: cond_false: Condition "virAsprintf(&path, "%s/%s", driver->path, name) < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:993:5: alloc_arg: "virCgroupNew(char const *, virCgroupPtr *)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/cgroup.c:620:5: alloc_arg: "virAlloc(void *, size_t)" allocates memory that is stored into "*group". >libvirt-0.10.2/src/util/memory.c:100:5: alloc_fn: Storage is returned from allocation function "calloc(size_t, size_t)". >libvirt-0.10.2/src/util/memory.c:100:5: var_assign: Assigning: "*((void **)ptrptr)" = "calloc(1UL, size)". >libvirt-0.10.2/src/util/memory.c:101:5: cond_false: Condition "*((void **)ptrptr) == NULL", taking false branch >libvirt-0.10.2/src/util/cgroup.c:620:5: cond_false: Condition "virAlloc(group, 176UL /* sizeof (**group) */) != 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:623:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:625:5: cond_false: Condition "!((*group)->path = ((0 && (size_t)(void const *)(path + 1) - (size_t)(void const *)path == 1) ? ((char const *)path[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(path)))", taking false branch >libvirt-0.10.2/src/util/cgroup.c:628:5: if_end: End of if statement >libvirt-0.10.2/src/util/cgroup.c:631:5: cond_false: Condition "rc < 0", taking false branch >libvirt-0.10.2/src/util/cgroup.c:994:5: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/util/cgroup.c:996:5: cond_true: Condition "rc == 0", taking true branch >libvirt-0.10.2/src/util/cgroup.c:1007:9: noescape: Resource "*group" is not freed or pointed-to in function "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)". >libvirt-0.10.2/src/util/cgroup.c:529:65: noescape: "virCgroupMakeGroup(virCgroupPtr, virCgroupPtr, int, unsigned int)" does not free or save its pointer parameter "group". >libvirt-0.10.2/src/util/cgroup.c:1008:9: cond_true: Condition "rc != 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2062: cond_false: Condition "virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0", taking false branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2066: if_end: End of if statement >libvirt-0.10.2/src/lxc/lxc_driver.c:2068: cond_true: Condition "i < nparams", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2071: cond_true: Condition "__coverity_strcmp(param->field, "weight") == 0", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2074: cond_true: Condition "(params + i).value.ui > 1000", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2077: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:2112: label: Reached label "cleanup" >libvirt-0.10.2/src/lxc/lxc_driver.c:2114: cond_true: Condition "vm", taking true branch >libvirt-0.10.2/src/lxc/lxc_driver.c:2117: leaked_storage: Variable "group" going out of scope leaks the storage it points to. > >Error: REVERSE_INULL (CWE-476): >libvirt-0.10.2/src/conf/netdev_bandwidth_conf.c:99: deref_ptr: Directly dereferencing pointer "node". >libvirt-0.10.2/src/conf/netdev_bandwidth_conf.c:107: check_after_deref: Null-checking "node" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. > >Error: REVERSE_INULL (CWE-476): >libvirt-0.10.2/src/network/bridge_driver.c:3491: deref_ptr: Directly dereferencing pointer "netdef". >libvirt-0.10.2/src/network/bridge_driver.c:3728: check_after_deref: Null-checking "netdef" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. > >Error: REVERSE_INULL (CWE-476): >libvirt-0.10.2/src/esx/esx_vi.c:2052: deref_ptr: Directly dereferencing pointer "objectSpec". >libvirt-0.10.2/src/esx/esx_vi.c:2171: check_after_deref: Null-checking "objectSpec" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. > >Error: UNREACHABLE (CWE-561): >libvirt-0.10.2/src/nwfilter/nwfilter_driver.c:259: unreachable: This code cannot be reached: "nwfilterDriverUnlock(driver...". > >Error: UNUSED_VALUE (CWE-563): >libvirt-0.10.2/src/qemu/qemu_capabilities.c:726: returned_pointer: Pointer "dom" returned by "virCapabilitiesAddGuestDomain(guest, "kvm", (kvmbin ? kvmbin : binary), NULL, nmachines, machines)" is never used. > >Error: UNUSED_VALUE (CWE-563): >libvirt-0.10.2/src/qemu/qemu_driver.c:12062: returned_pointer: Pointer "snap" returned by "qemuSnapObjFromSnapshot(vm, snapshot)" is never used. > >Error: UNUSED_VALUE (CWE-563): >libvirt-0.10.2/src/qemu/qemu_driver.c:12036: returned_pointer: Pointer "snap" returned by "qemuSnapObjFromSnapshot(vm, snapshot)" is never used. > >Error: UNUSED_VALUE (CWE-563): >libvirt-0.10.2/tools/virsh-interface.c:966: returned_pointer: Pointer "br_node" returned by "virXPathNode("./bridge", ctxt)" is never used. > >Error: UNUSED_VALUE (CWE-563): >libvirt-0.10.2/tools/virsh-interface.c:971: returned_pointer: Pointer "if_node" returned by "virXPathNode("./bridge/interface[2]", ctxt)" is never used. > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/util/command.c:414: cond_true: Condition "argv[0][0] != '/'", taking true branch >libvirt-0.10.2/src/util/command.c:415: cond_false: Condition "!(binary = virFindFileInPath(argv[0]))", taking false branch >libvirt-0.10.2/src/util/command.c:420: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:421: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:423: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:425: cond_true: Condition "infd < 0", taking true branch >libvirt-0.10.2/src/util/command.c:426: cond_false: Condition "getDevNull(&null) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:431: cond_true: Condition "outfd != NULL", taking true branch >libvirt-0.10.2/src/util/command.c:432: cond_true: Condition "*outfd == -1", taking true branch >libvirt-0.10.2/src/util/command.c:433: cond_false: Condition "rpl_pipe2(pipeout, 524288) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:437: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:439: cond_true: Condition "flags & VIR_EXEC_NONBLOCK", taking true branch >libvirt-0.10.2/src/util/command.c:439: cond_false: Condition "virSetNonBlock(pipeout[0]) == -1", taking false branch >libvirt-0.10.2/src/util/command.c:444: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:447: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:449: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:450: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:454: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:456: cond_true: Condition "errfd != NULL", taking true branch >libvirt-0.10.2/src/util/command.c:457: cond_true: Condition "errfd == outfd", taking true branch >libvirt-0.10.2/src/util/command.c:458: alias: Assigning: "childerr" = "childout". Now both are same file descriptor. >libvirt-0.10.2/src/util/command.c:459: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:477: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:481: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:485: cond_false: Condition "pid < 0", taking false branch >libvirt-0.10.2/src/util/command.c:487: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:489: cond_false: Condition "pid", taking false branch >libvirt-0.10.2/src/util/command.c:510: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:514: cond_false: Condition "forkRet < 0", taking false branch >libvirt-0.10.2/src/util/command.c:519: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:522: cond_true: Condition "i < openmax", taking true branch >libvirt-0.10.2/src/util/command.c:523: cond_true: Condition "i == infd", taking true branch >libvirt-0.10.2/src/util/command.c:524: continue: Continuing loop >libvirt-0.10.2/src/util/command.c:532: loop: Looping back >libvirt-0.10.2/src/util/command.c:522: cond_true: Condition "i < openmax", taking true branch >libvirt-0.10.2/src/util/command.c:523: cond_false: Condition "i == infd", taking false branch >libvirt-0.10.2/src/util/command.c:523: cond_true: Condition "i == childout", taking true branch >libvirt-0.10.2/src/util/command.c:524: continue: Continuing loop >libvirt-0.10.2/src/util/command.c:532: loop: Looping back >libvirt-0.10.2/src/util/command.c:522: cond_false: Condition "i < openmax", taking false branch >libvirt-0.10.2/src/util/command.c:532: loop_end: Reached end of loop >libvirt-0.10.2/src/util/command.c:534: cond_false: Condition "prepareStdFd(infd, 0) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:538: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:539: cond_true: Condition "childout > 0", taking true branch >libvirt-0.10.2/src/util/command.c:539: cond_false: Condition "prepareStdFd(childout, 1) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:543: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:544: cond_true: Condition "childerr > 0", taking true branch >libvirt-0.10.2/src/util/command.c:544: cond_false: Condition "prepareStdFd(childerr, 2) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:548: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:550: cond_true: Condition "infd != 0", taking true branch >libvirt-0.10.2/src/util/command.c:550: cond_false: Condition "infd != null", taking false branch >libvirt-0.10.2/src/util/command.c:553: cond_true: Condition "childout > 2", taking true branch >libvirt-0.10.2/src/util/command.c:553: cond_true: Condition "childout != null", taking true branch >libvirt-0.10.2/src/util/command.c:553: cond_true: Condition "childout != childerr", taking true branch >libvirt-0.10.2/src/util/command.c:554: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes "childout". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/util/command.c:555: cond_true: Condition "childerr > 2", taking true branch >libvirt-0.10.2/src/util/command.c:555: cond_true: Condition "childerr != null", taking true branch >libvirt-0.10.2/src/util/command.c:556: double_close: Calling "virFileClose(int *, virFileCloseFlags)" closes handle "childerr" which has already been closed. >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/util/command.c:414: cond_true: Condition "argv[0][0] != '/'", taking true branch >libvirt-0.10.2/src/util/command.c:415: cond_false: Condition "!(binary = virFindFileInPath(argv[0]))", taking false branch >libvirt-0.10.2/src/util/command.c:420: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:421: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:423: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:425: cond_true: Condition "infd < 0", taking true branch >libvirt-0.10.2/src/util/command.c:426: cond_false: Condition "getDevNull(&null) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:428: alias: Assigning: "infd" = "null". Now both are same file descriptor. >libvirt-0.10.2/src/util/command.c:431: cond_true: Condition "outfd != NULL", taking true branch >libvirt-0.10.2/src/util/command.c:432: cond_true: Condition "*outfd == -1", taking true branch >libvirt-0.10.2/src/util/command.c:433: cond_false: Condition "rpl_pipe2(pipeout, 524288) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:437: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:439: cond_true: Condition "flags & VIR_EXEC_NONBLOCK", taking true branch >libvirt-0.10.2/src/util/command.c:439: cond_false: Condition "virSetNonBlock(pipeout[0]) == -1", taking false branch >libvirt-0.10.2/src/util/command.c:444: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:447: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:449: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:450: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:454: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:456: cond_true: Condition "errfd != NULL", taking true branch >libvirt-0.10.2/src/util/command.c:457: cond_true: Condition "errfd == outfd", taking true branch >libvirt-0.10.2/src/util/command.c:459: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:477: if_fallthrough: Falling through to end of if statement >libvirt-0.10.2/src/util/command.c:481: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:485: cond_false: Condition "pid < 0", taking false branch >libvirt-0.10.2/src/util/command.c:487: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:489: cond_false: Condition "pid", taking false branch >libvirt-0.10.2/src/util/command.c:510: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:514: cond_false: Condition "forkRet < 0", taking false branch >libvirt-0.10.2/src/util/command.c:519: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:522: cond_true: Condition "i < openmax", taking true branch >libvirt-0.10.2/src/util/command.c:523: cond_false: Condition "i == infd", taking false branch >libvirt-0.10.2/src/util/command.c:523: cond_true: Condition "i == childout", taking true branch >libvirt-0.10.2/src/util/command.c:524: continue: Continuing loop >libvirt-0.10.2/src/util/command.c:532: loop: Looping back >libvirt-0.10.2/src/util/command.c:522: cond_true: Condition "i < openmax", taking true branch >libvirt-0.10.2/src/util/command.c:523: cond_true: Condition "i == infd", taking true branch >libvirt-0.10.2/src/util/command.c:524: continue: Continuing loop >libvirt-0.10.2/src/util/command.c:532: loop: Looping back >libvirt-0.10.2/src/util/command.c:522: cond_true: Condition "i < openmax", taking true branch >libvirt-0.10.2/src/util/command.c:523: cond_true: Condition "i == infd", taking true branch >libvirt-0.10.2/src/util/command.c:524: continue: Continuing loop >libvirt-0.10.2/src/util/command.c:532: loop: Looping back >libvirt-0.10.2/src/util/command.c:522: cond_false: Condition "i < openmax", taking false branch >libvirt-0.10.2/src/util/command.c:532: loop_end: Reached end of loop >libvirt-0.10.2/src/util/command.c:534: cond_false: Condition "prepareStdFd(infd, 0) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:538: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:539: cond_true: Condition "childout > 0", taking true branch >libvirt-0.10.2/src/util/command.c:539: cond_false: Condition "prepareStdFd(childout, 1) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:543: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:544: cond_true: Condition "childerr > 0", taking true branch >libvirt-0.10.2/src/util/command.c:544: cond_false: Condition "prepareStdFd(childerr, 2) < 0", taking false branch >libvirt-0.10.2/src/util/command.c:548: if_end: End of if statement >libvirt-0.10.2/src/util/command.c:550: cond_true: Condition "infd != 0", taking true branch >libvirt-0.10.2/src/util/command.c:550: cond_true: Condition "infd != null", taking true branch >libvirt-0.10.2/src/util/command.c:550: cond_true: Condition "infd != childerr", taking true branch >libvirt-0.10.2/src/util/command.c:550: cond_true: Condition "infd != childout", taking true branch >libvirt-0.10.2/src/util/command.c:552: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes "infd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/util/command.c:553: cond_true: Condition "childout > 2", taking true branch >libvirt-0.10.2/src/util/command.c:553: cond_true: Condition "childout != null", taking true branch >libvirt-0.10.2/src/util/command.c:553: cond_true: Condition "childout != childerr", taking true branch >libvirt-0.10.2/src/util/command.c:555: cond_true: Condition "childerr > 2", taking true branch >libvirt-0.10.2/src/util/command.c:555: cond_true: Condition "childerr != null", taking true branch >libvirt-0.10.2/src/util/command.c:557: double_close: Calling "virFileClose(int *, virFileCloseFlags)" closes handle "null" which has already been closed. >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/qemu/qemu_domain.c:1430: cond_true: Condition "!disk->format", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1430: cond_true: Condition "driver->allowDiskFormatProbing", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1432: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/qemu/qemu_domain.c:1434: cond_true: Condition "disk->rawio == 1", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1435: double_close: Calling "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes handle "logFD" which has already been closed. >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "driver->privileged", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "!driver->clearEmulatorCapabilities", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1408: cond_true: Condition "obj->def->namespaceData", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1410: cond_true: Condition "qemucmd->num_args", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu->mode == VIR_CPU_MODE_HOST_PASSTHROUGH", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_true: Condition "i < obj->def->ndisks", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_true: Condition "i < obj->def->ndisks", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_false: Condition "i < obj->def->ndisks", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1420: cond_true: Condition "i < obj->def->nnets", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1420: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_domain.c:1420: cond_true: Condition "i < obj->def->nnets", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1421: closed_arg: "qemuDomainObjCheckNetTaint(struct qemud_driver *, virDomainObjPtr, virDomainNetDefPtr, int)" closes "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1449:5: cond_true: Condition "net->script != NULL", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1450:9: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/qemu/qemu_domain.c:1420: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_domain.c:1420: cond_true: Condition "i < obj->def->nnets", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1421: double_close: Calling "qemuDomainObjCheckNetTaint(struct qemud_driver *, virDomainObjPtr, virDomainNetDefPtr, int)" closes handle "logFD" which has already been closed. >libvirt-0.10.2/src/qemu/qemu_domain.c:1449:5: cond_true: Condition "net->script != NULL", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1450:9: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "driver->privileged", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "!driver->clearEmulatorCapabilities", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1406: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/qemu/qemu_domain.c:1408: cond_true: Condition "obj->def->namespaceData", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1410: cond_true: Condition "qemucmd->num_args", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1411: double_close: Calling "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes handle "logFD" which has already been closed. >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "driver->privileged", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "!driver->clearEmulatorCapabilities", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1406: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/qemu/qemu_domain.c:1408: cond_true: Condition "obj->def->namespaceData", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1410: cond_true: Condition "qemucmd->num_args", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu->mode == VIR_CPU_MODE_HOST_PASSTHROUGH", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1415: double_close: Calling "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes handle "logFD" which has already been closed. >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_false: Condition "driver->privileged", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1408: cond_true: Condition "obj->def->namespaceData", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1410: cond_true: Condition "qemucmd->num_args", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1411: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu->mode == VIR_CPU_MODE_HOST_PASSTHROUGH", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1415: double_close: Calling "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes handle "logFD" which has already been closed. >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "driver->privileged", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "!driver->clearEmulatorCapabilities", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1408: cond_true: Condition "obj->def->namespaceData", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1410: cond_true: Condition "qemucmd->num_args", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu->mode == VIR_CPU_MODE_HOST_PASSTHROUGH", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1415: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_true: Condition "i < obj->def->ndisks", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_true: Condition "i < obj->def->ndisks", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_true: Condition "i < obj->def->ndisks", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1418: double_close: Calling "qemuDomainObjCheckDiskTaint(struct qemud_driver *, virDomainObjPtr, virDomainDiskDefPtr, int)" closes handle "logFD" which has already been closed. >libvirt-0.10.2/src/qemu/qemu_domain.c:1430:5: cond_true: Condition "!disk->format", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1430:5: cond_true: Condition "driver->allowDiskFormatProbing", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1432:9: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "driver->privileged", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1402: cond_true: Condition "!driver->clearEmulatorCapabilities", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1408: cond_true: Condition "obj->def->namespaceData", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1410: cond_true: Condition "qemucmd->num_args", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1414: cond_true: Condition "obj->def->cpu->mode == VIR_CPU_MODE_HOST_PASSTHROUGH", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1415: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_true: Condition "i < obj->def->ndisks", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_true: Condition "i < obj->def->ndisks", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_domain.c:1417: cond_false: Condition "i < obj->def->ndisks", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1420: cond_true: Condition "i < obj->def->nnets", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1421: double_close: Calling "qemuDomainObjCheckNetTaint(struct qemud_driver *, virDomainObjPtr, virDomainNetDefPtr, int)" closes handle "logFD" which has already been closed. >libvirt-0.10.2/src/qemu/qemu_domain.c:1449:5: cond_true: Condition "net->script != NULL", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1450:9: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". > >Error: USE_AFTER_FREE (CWE-416): >libvirt-0.10.2/src/qemu/qemu_process.c:4286: cond_false: Condition "virDomainObjIsActive(vm)", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4290: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_process.c:4297: cond_false: Condition "virDomainObjSetDefTransient(driver->caps, vm, true /* 1 */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4302: cond_false: Condition "virFileMakePath(driver->logDir) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4307: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_process.c:4309: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_process.c:4310: cond_true: Condition "pidfile", taking true branch >libvirt-0.10.2/src/qemu/qemu_process.c:4310: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4310: cond_false: Condition "!(priv->pidfile = ((0 && (size_t)(void const *)(pidfile + 1) - (size_t)(void const *)pidfile == 1) ? ((char const *)pidfile[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(pidfile)))", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4316: cond_false: Condition "sec_managers == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4318: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_process.c:4320: cond_true: Condition "sec_managers[i]", taking true branch >libvirt-0.10.2/src/qemu/qemu_process.c:4323: cond_false: Condition "seclabeldef == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4325: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_process.c:4327: cond_false: Condition "virAlloc(&seclabel, 4104UL /* sizeof (*seclabel) */) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4329: cond_false: Condition "virSecurityManagerGetProcessLabel(driver->securityManager, vm->def, vm->pid, seclabel) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4333: cond_false: Condition "0", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4333: cond_false: Condition "!(seclabeldef->model = ((0 && (size_t)(void const *)(model + 1) - (size_t)(void const *)model == 1) ? ((char const *)model[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(model)))", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4336: cond_false: Condition "0 /* 0 && (size_t)(void const *)&seclabel->label[1] - (size_t)(void const *)seclabel->label == 1 */", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4336: cond_false: Condition "!(seclabeldef->label = ((0 /* 0 && (size_t)(void const *)&seclabel->label[1] - (size_t)(void const *)seclabel->label == 1 */) ? ((char const *)seclabel->label[0] == 0) ? (char *)calloc(1UL /* (size_t)1 */, 1UL /* (size_t)1 */) : ({...}) : __strdup(seclabel->label)))", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4338: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_process.c:4339: loop: Jumping back to the beginning of the loop >libvirt-0.10.2/src/qemu/qemu_process.c:4320: loop_begin: Jumped back to beginning of loop >libvirt-0.10.2/src/qemu/qemu_process.c:4320: cond_false: Condition "sec_managers[i]", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4339: loop_end: Reached end of loop >libvirt-0.10.2/src/qemu/qemu_process.c:4342: cond_false: Condition "(logfile = qemuDomainCreateLog(driver, vm, false /* 0 */)) < 0", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4347: cond_false: Condition "!(priv->caps = qemuCapsCacheLookupCopy(driver->capsCache, vm->def->emulator))", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4365: cond_false: Condition "qemuCapsGet(priv->caps, QEMU_CAPS_DEVICE)", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4369: if_end: End of if statement >libvirt-0.10.2/src/qemu/qemu_process.c:4371: cond_false: Condition "(timestamp = virTimeStringNow()) == NULL", taking false branch >libvirt-0.10.2/src/qemu/qemu_process.c:4374: else_branch: Reached else branch >libvirt-0.10.2/src/qemu/qemu_process.c:4375: cond_true: Condition "safewrite(logfile, timestamp, strlen(timestamp)) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_process.c:4381: cond_true: Condition "1", taking true branch >libvirt-0.10.2/src/qemu/qemu_process.c:4384: closed_arg: "qemuDomainObjTaint(struct qemud_driver *, virDomainObjPtr, enum virDomainTaintFlags, int)" closes "logfile". >libvirt-0.10.2/src/qemu/qemu_domain.c:1369:5: cond_true: Condition "virDomainObjTaint(obj, taint)", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1383:9: closed_arg: "qemuDomainAppendLog(struct qemud_driver *, virDomainObjPtr, int, char const *, ...)" closes parameter "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1542:12: var_assign_parm: Assigning: "fd" = "logFD". >libvirt-0.10.2/src/qemu/qemu_domain.c:1549:5: cond_false: Condition "fd == -1", taking false branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1553:5: cond_true: Condition "virVasprintf(&message, fmt, argptr) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1555:9: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1565:1: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_domain.c:1568:5: cond_true: Condition "fd != logFD", taking true branch >libvirt-0.10.2/src/qemu/qemu_domain.c:1569:9: closed_arg: "virFileClose(int *, virFileCloseFlags)" closes parameter "fd". >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr". >libvirt-0.10.2/src/qemu/qemu_process.c:4389: cond_true: Condition "qemuProcessWaitForMonitor(driver, vm, priv->caps, -1) < 0", taking true branch >libvirt-0.10.2/src/qemu/qemu_process.c:4390: goto: Jumping to label "cleanup" >libvirt-0.10.2/src/qemu/qemu_process.c:4466: label: Reached label "cleanup" >libvirt-0.10.2/src/qemu/qemu_process.c:4470: double_close: Calling "virFileClose(int *, virFileCloseFlags)" closes handle "logfile" which has already been closed. >libvirt-0.10.2/src/util/virfile.c:53:5: cond_false: Condition "*fdptr < 0", taking false branch >libvirt-0.10.2/src/util/virfile.c:56:5: cond_true: Condition "flags & VIR_FILE_CLOSE_PRESERVE_ERRNO", taking true branch >libvirt-0.10.2/src/util/virfile.c:59:5: closed_arg: "close(int)" closes parameter "*fdptr".
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 878376
: 658663