mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
Fix missing check for memory allocation failure
This commit is contained in:
parent
4b23495509
commit
489da1c4b1
@ -1,3 +1,7 @@
|
|||||||
|
Thu May 29 14:44:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/xend_internal.c: Fix missing check for failure
|
||||||
|
|
||||||
Thu May 29 11:29:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
Thu May 29 11:29:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* tests/nodeinfotest.c, tests/qemuxml2argvtest.c,
|
* tests/nodeinfotest.c, tests/qemuxml2argvtest.c,
|
||||||
|
@ -924,6 +924,10 @@ char *sound_string_to_xml(const char *sound) {
|
|||||||
// and build with all available models
|
// and build with all available models
|
||||||
if (STREQ(model, "all")) {
|
if (STREQ(model, "all")) {
|
||||||
int i;
|
int i;
|
||||||
|
if (virBufferError(&buf)) {
|
||||||
|
free(model);
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
free(virBufferContentAndReset(&buf));
|
free(virBufferContentAndReset(&buf));
|
||||||
|
|
||||||
for (i=0; i < sizeof(sound_models)/sizeof(*sound_models); ++i)
|
for (i=0; i < sizeof(sound_models)/sizeof(*sound_models); ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user