]> xenbits.xensource.com Git - libvirt.git/commit
lxc_container: Don't dereference NULL upon failure
authorJim Meyering <meyering@redhat.com>
Thu, 5 Feb 2009 15:28:19 +0000 (15:28 +0000)
committerJim Meyering <meyering@redhat.com>
Thu, 5 Feb 2009 15:28:19 +0000 (15:28 +0000)
commit7faa50d1db03985df82ac85858620de1ac53a521
treece48efc9b65633fbb7d3cb229188581f504f62cf
parent41549b38880e301afaa0700f2c99f44220933234
lxc_container: Don't dereference NULL upon failure

* src/lxc_container.c (lxcContainerPivotRoot): Free and zero
oldroot *after* printing the diagnostic, both for virFileMakePath
and pivot_root failure.
ChangeLog
src/lxc_container.c