multipathd: fix memory issues in cli.c