]> sourceware.org Git - lvm2.git/commit
mirrors: fix leak in device_is_usable mirror check
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 6 Dec 2012 22:37:21 +0000 (23:37 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Dec 2012 10:15:22 +0000 (11:15 +0100)
commitec49f07b0dc89720f4a74a1212e106990099d2d6
tree2fcec563793939331c623330c53c47a01a72b14d
parentf942ae4a7af0f9b93c6a6aacb1793ee22f87ed13
mirrors: fix leak in device_is_usable mirror check

Function _ignore_blocked_mirror_devices was not release
allocated strings images_health and log_health.

In error paths it was also not releasing dm_task structure.

Swaped return code of _ignore_blocked_mirror_devices and
use 1 as success.

In _parse_mirror_status use log_error if memory allocation
fails and few more errors so they are no going unnoticed
as debug messages.

On error path always clear return values and free strings.

For dev_create_file  use cache mem pool to avoid memleak.
WHATS_NEW
lib/activate/dev_manager.c
This page took 0.0359 seconds and 5 git commands to generate.