mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +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>
|
||||
|
||||
* src/virsh.c (cmdCapabilities): Plug a small leak.
|
||||
|
||||
* src/test.c (testLoadDomain): Avoid leaks upon failure.
|
||||
|
||||
Avoid used-uninitialized errors in test driver.
|
||||
|
@ -2020,6 +2020,7 @@ cmdCapabilities (vshControl * ctl, vshCmd * cmd ATTRIBUTE_UNUSED)
|
||||
return FALSE;
|
||||
}
|
||||
vshPrint (ctl, "%s\n", caps);
|
||||
free (caps);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user