]> xenbits.xensource.com Git - libvirt.git/commit
lxc: Revert zeroing count of allocated items if VIR_REALLOC_N fails
authorPeter Krempa <pkrempa@redhat.com>
Thu, 27 Oct 2011 08:24:30 +0000 (10:24 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 27 Oct 2011 08:32:21 +0000 (10:32 +0200)
commit95d3b4de714049e4b6b2033e2db9151ae11d6742
tree6e6aa12c458f022bff2425a239af400cadc3ba9f
parent838d8c1b6babedaeac285f43c9255d3ae7d013f5
lxc: Revert zeroing count of allocated items if VIR_REALLOC_N fails

Previous commit clears number of items alocated in lxcSetupLoopDevices
if VIR_REALLOC_N fails. In that case, the pointer is not NULL, and
causes leaking FDs that have been allocated.

 *  src/lxc/lxc_controller.c: revert zeroing array size
src/lxc/lxc_controller.c