]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Fix a problem which will cause libvirtd crashed
authorOsier Yang <jyang@redhat.com>
Wed, 16 Mar 2011 08:28:07 +0000 (16:28 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 16 Mar 2011 08:28:07 +0000 (16:28 +0800)
commit98a4e5a301eb96b4d6c80b859e9986491e1eae06
tree990868d58bde3a52fd33c5a2730c67ba540dd3a7
parent100bba0647c30e777040cda52cbfaba8033035a1
storage: Fix a problem which will cause libvirtd crashed

If pool xml has no definition for "port", then "Segmentation fault"
happens when jumping to "cleanup:" to do "VIR_FREE(port)", as "port"
was not initialized in this situation.

* src/conf/storage_conf.c
src/conf/storage_conf.c