multipath: strdup multipath alias, so that it isn't deleted
authorBenjamin Marzinski <bmarzins@redhat.com>
Thu, 1 Sep 2011 06:50:54 +0000 (08:50 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Thu, 1 Sep 2011 06:50:54 +0000 (08:50 +0200)
commit735f2992398d4179601f3d7043fad606c90171d4
treef4a70fff8722eb9e6b69e8f22bc41e239923f39b
parent4050f1edc37ae5b327be51c4dffb071955c45cb2
multipath: strdup multipath alias, so that it isn't deleted

When a multipath device is added to multipathd with ev_add_map(),
the alias is not duplicated, and is freed immediately after ev_add_map()
returns, causing a memory error. This patch corrects that.
libmultipath/structs_vec.c