multipath: libudev cleanup and bugfixes
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 5 Jun 2012 23:04:36 +0000 (18:04 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 6 Jun 2012 18:09:01 +0000 (20:09 +0200)
commita00088a0162fe96d647c42902a9f86c4950b907f
tree98d16c72c9c30baf93113111e84da129956a3eac
parentac25859c3e58bae0471f6c28bd1af67d49d78406
multipath: libudev cleanup and bugfixes

get_refwwid wasn't working anymore, since it wasn't setting the path's udevice.
Also, cli_add_path was dereferencing a NULL pointer (pp). Finally, there were
a number of places where udev devices weren't getting dereferenced when they
should have been, causing memory leaks.  This patch cleans these up.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/configure.c
libmultipath/discovery.c
libmultipath/uevent.c
multipathd/cli_handlers.c
multipathd/main.c