[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH][RESEND v5 1/3] error: define g_autoptr() cleanup function for th
From: |
Maciej S. Szmigiero |
Subject: |
[PATCH][RESEND v5 1/3] error: define g_autoptr() cleanup function for the Error type |
Date: |
Mon, 12 Jun 2023 16:00:52 +0200 |
From: "Maciej S. Szmigiero" <maciej.szmigiero@oracle.com>
Used by the hv-balloon driver for automatic memory management.
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
---
include/qapi/error.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/qapi/error.h b/include/qapi/error.h
index f21a231bb1a6..b0b1838e3e93 100644
--- a/include/qapi/error.h
+++ b/include/qapi/error.h
@@ -437,6 +437,8 @@ Error *error_copy(const Error *err);
*/
void error_free(Error *err);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(Error, error_free)
+
/*
* Convenience function to assert that *@errp is set, then silently free it.
*/
- [PATCH][RESEND v5 0/3] Hyper-V Dynamic Memory Protocol driver (hv-balloon 🎈️), Maciej S. Szmigiero, 2023/06/12
- [PATCH][RESEND v5 2/3] Add Hyper-V Dynamic Memory Protocol definitions, Maciej S. Szmigiero, 2023/06/12
- [PATCH][RESEND v5 1/3] error: define g_autoptr() cleanup function for the Error type,
Maciej S. Szmigiero <=
- [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), Maciej S. Szmigiero, 2023/06/12
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), David Hildenbrand, 2023/06/12
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), Maciej S. Szmigiero, 2023/06/13
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), David Hildenbrand, 2023/06/19
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), Maciej S. Szmigiero, 2023/06/20
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), David Hildenbrand, 2023/06/21
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), Maciej S. Szmigiero, 2023/06/21
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), David Hildenbrand, 2023/06/22
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), Maciej S. Szmigiero, 2023/06/22
- Re: [PATCH][RESEND v5 3/3] Add a Hyper-V Dynamic Memory Protocol driver (hv-balloon), David Hildenbrand, 2023/06/22