]> xenbits.xensource.com Git - libvirt.git/commit
conf: Don't corrupt metadata on OOM
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Sep 2013 09:16:30 +0000 (11:16 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 Sep 2013 10:13:49 +0000 (12:13 +0200)
commit7655ed0802eecc3d8486a0360d2326ecd052e477
treeb156d0a75bba86db863c704f82dfbdb583104b58
parent044e3e75248f0346f9dfd181a90f7d16d69ed482
conf: Don't corrupt metadata on OOM

Eric Blake suggested that we could do a little better in case copying of
the metadata to be set fails. With this patch, the old metadata is
discarded after the new string is copied successfuly.
src/conf/domain_conf.c