]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domain_event.c: don't deref NULL on an OOM error path
authorJim Meyering <meyering@redhat.com>
Mon, 29 Mar 2010 15:43:01 +0000 (17:43 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 7 Apr 2010 14:20:28 +0000 (16:20 +0200)
commit3c8877e74390bc71f3cd31a2d9507e31ffc739cb
tree2da59d2fd760b1594bd5caf0b185814bd7bbe529
parentf8352e221f05910d9f6ab00edc0eb664efc0018b
domain_event.c: don't deref NULL on an OOM error path

* src/conf/domain_event.c (virDomainEventGraphicsNewFromDom):
Return NULL when handling out-of-memory error, rather than
falling through with ev=NULL and then assigning to ev->member.
(virDomainEventGraphicsNewFromObj): Likewise.
src/conf/domain_event.c