[multipath] fix a double free error
authorChristophe Varoqui <root@xa-s05.(none)>
Tue, 18 Oct 2005 10:01:02 +0000 (12:01 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Tue, 18 Oct 2005 10:01:02 +0000 (12:01 +0200)
commitf7dda0660713513bac2589fc16ccb8c77c6dbe63
tree16a8023a9fdae83284eef93fb87953bd8bc34eb2
parent7e10a0295bdae77fa48e9c675883fa73e30cc041
[multipath] fix a double free error

"multipath $FLAGS $ALIAS" code path lead to a double free :
1) get_refwwid did a lookup in mptable and returned mpe->alias as the
   refwwid
2) in the exit path, we freed refwwid
3) then free_config()->free_mptable()->free_mpe() freed mpe->alias at the
   same address

So return strdup(mpe->alias) instead.
multipath/main.c