[libvirt] [PATCH v2 03/31] conf: Use VIR_AUTO* in virDomainCapsCPUModelsAdd
Ján Tomko
jtomko at redhat.com
Wed Oct 16 10:35:09 UTC 2019
On Tue, Oct 15, 2019 at 05:34:39PM +0200, Jiri Denemark wrote:
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>Reviewed-by: Ján Tomko <jtomko at redhat.com>
>---
>
>Notes:
> Version 2:
> - no change
>
> src/conf/domain_capabilities.c | 15 +++++----------
> 1 file changed, 5 insertions(+), 10 deletions(-)
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
with the following squashed in:
diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c
index 3224ec3f52..a143386d0b 100644
--- a/src/conf/domain_capabilities.c
+++ b/src/conf/domain_capabilities.c
@@ -246,7 +246,7 @@ virDomainCapsCPUModelsAdd(virDomainCapsCPUModelsPtr cpuModels,
virDomainCapsCPUUsable usable,
char **blockers)
{
- VIR_AUTOFREE(char *) nameCopy = NULL;
+ g_autofree char *nameCopy = NULL;
VIR_AUTOSTRINGLIST blockersCopy = NULL;
if (VIR_STRNDUP(nameCopy, name, nameLen) < 0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20191016/5ddca50b/attachment-0001.sig>
More information about the libvir-list
mailing list