]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage_conf: plug a leak on OOM error path
authorJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 17:40:13 +0000 (18:40 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 19 Jan 2010 17:19:13 +0000 (18:19 +0100)
commit3aa13a471ac56400e3027d167da77a433b26f6da
tree2b23e31eabb3f7b0b0c81d2ab1515b386c336ffe
parent4bc3bd7b1845e2e2c16dd789fc839f413762d24f
storage_conf: plug a leak on OOM error path

* src/conf/storage_conf.c (virStoragePoolSourceListNewSource):
Free just-allocated "source" upon VIR_REALLOC_N failure.
src/conf/storage_conf.c