Fix segfault in dm reassign code path
authorChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 25 May 2011 12:00:52 +0000 (14:00 +0200)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 25 May 2011 12:00:52 +0000 (14:00 +0200)
alias is allocated and freed in multipathd/main.c:uev_add_map().

Don't free it in ev_add_map() called from uev_add_map() to avoid
double free.

multipathd/main.c

index 4497609..cc75921 100644 (file)
@@ -272,7 +272,6 @@ ev_add_map (char * dev, char * alias, struct vectors * vecs)
                                alias);
                        dm_reassign(alias);
                }
-               FREE(alias);
                return 0;
        }