src/virsh.c (cmdCapabilities): Plug a small leak.

This commit is contained in:
Jim Meyering 2008-01-30 19:57:54 +00:00
parent 34dff95bfd
commit a1d2d2b21c
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -2020,6 +2020,7 @@ cmdCapabilities (vshControl * ctl, vshCmd * cmd ATTRIBUTE_UNUSED)
return FALSE;
}
vshPrint (ctl, "%s\n", caps);
free (caps);
return TRUE;
}