qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/5] qapi: allow for g_autoptr(Error) usage


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 1/5] qapi: allow for g_autoptr(Error) usage
Date: Mon, 22 Jul 2024 16:31:31 +0200
User-agent: Mozilla Thunderbird

On 22/7/24 15:16, Daniel P. Berrangé wrote:
While common error propagation practice does not require manually
free'ing of local 'Error' objects, there are some cases where this
is needed. One example is where the 'Error' object is only used
for providing info to a trace event probe. Supporting g_autoptr
avoids the need to manually call 'error_free'.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
  include/qapi/error.h | 2 ++
  1 file changed, 2 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]