mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-05 05:45:46 +00:00
src/virsh.c (cmdCapabilities): Plug a small leak.
This commit is contained in:
parent
34dff95bfd
commit
a1d2d2b21c
@ -1,5 +1,7 @@
|
|||||||
Wed Jan 30 20:49:34 CET 2008 Jim Meyering <meyering@redhat.com>
|
Wed Jan 30 20:49:34 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
* src/virsh.c (cmdCapabilities): Plug a small leak.
|
||||||
|
|
||||||
* src/test.c (testLoadDomain): Avoid leaks upon failure.
|
* src/test.c (testLoadDomain): Avoid leaks upon failure.
|
||||||
|
|
||||||
Avoid used-uninitialized errors in test driver.
|
Avoid used-uninitialized errors in test driver.
|
||||||
|
@ -2020,6 +2020,7 @@ cmdCapabilities (vshControl * ctl, vshCmd * cmd ATTRIBUTE_UNUSED)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
vshPrint (ctl, "%s\n", caps);
|
vshPrint (ctl, "%s\n", caps);
|
||||||
|
free (caps);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user