error: define g_autoptr() cleanup function for the Error type
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Tue, 4 Mar 2025 22:03:35 +0000 (23:03 +0100)
committerCédric Le Goater <clg@redhat.com>
Thu, 6 Mar 2025 05:47:33 +0000 (06:47 +0100)
commit18eb55546a54e443d94a4c49286348176ad4b00a
treeaae981fcd91eb3510a83d4456baee0519814cb5e
parent6a76eb4872f632974307bf12cb7f2416a77ad4a8
error: define g_autoptr() cleanup function for the Error type

Automatic memory management helps avoid memory safety issues.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Link: https://lore.kernel.org/qemu-devel/a5843c5fa64d7e5239a4316092ec0ef0d10c2320.1741124640.git.maciej.szmigiero@oracle.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
include/qapi/error.h