diff --git a/tools/virsh.c b/tools/virsh.c index e6e4f8b87654240186511712c31bc07c366a9da6..4262d60ec743761b6c50221ab6034ba056379f43 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -1541,6 +1541,7 @@ cmdDomIfGetLink (vshControl *ctl, const vshCmd *cmd) VIR_FREE(mac); goto hit; } + VIR_FREE(mac); } cur = cur->next; } @@ -6400,7 +6401,7 @@ cmdBlkdeviotune(vshControl *ctl, const vshCmd *cmd) } } - ret = true; + ret = true; goto cleanup; } else { /* Set the block I/O throttle, match by opt since parameters can be 0 */