Re: [libvirt] [PATCH 0/4] Make it easier to clean up after using virBuffer

2017-08-25 Thread Martin Kletzander
On Fri, Aug 25, 2017 at 07:43:44AM -0400, John Ferlan wrote: On 08/25/2017 02:19 AM, Martin Kletzander wrote: On Wed, Aug 23, 2017 at 12:56:02PM -0400, John Ferlan wrote: On 08/21/2017 03:47 AM, Martin Kletzander wrote: There are many places in the code where virBufferCheckError() is used

Re: [libvirt] [PATCH 0/4] Make it easier to clean up after using virBuffer

2017-08-25 Thread John Ferlan
On 08/25/2017 02:19 AM, Martin Kletzander wrote: > On Wed, Aug 23, 2017 at 12:56:02PM -0400, John Ferlan wrote: >> >> >> On 08/21/2017 03:47 AM, Martin Kletzander wrote: >>> There are many places in the code where virBufferCheckError() is used >>> and then, right after that, virBufferContentAndRe

Re: [libvirt] [PATCH 0/4] Make it easier to clean up after using virBuffer

2017-08-24 Thread Martin Kletzander
On Wed, Aug 23, 2017 at 12:56:02PM -0400, John Ferlan wrote: On 08/21/2017 03:47 AM, Martin Kletzander wrote: There are many places in the code where virBufferCheckError() is used and then, right after that, virBufferContentAndReset() is called. The former has ATTRIBUTE_RETURN_CHECK, so every

Re: [libvirt] [PATCH 0/4] Make it easier to clean up after using virBuffer

2017-08-23 Thread John Ferlan
On 08/21/2017 03:47 AM, Martin Kletzander wrote: > There are many places in the code where virBufferCheckError() is used > and then, right after that, virBufferContentAndReset() is called. The > former has ATTRIBUTE_RETURN_CHECK, so every occurrence just checks > that. However, if the return va

[libvirt] [PATCH 0/4] Make it easier to clean up after using virBuffer

2017-08-21 Thread Martin Kletzander
There are many places in the code where virBufferCheckError() is used and then, right after that, virBufferContentAndReset() is called. The former has ATTRIBUTE_RETURN_CHECK, so every occurrence just checks that. However, if the return value of the latter is also the return value of the current f