Paolo Bonzini
afd1af1c99
hw/intc/apic: fix memory leak
...
deliver_bitmask is allocated on the heap in apic_deliver(), but there
are many paths in the function that return before the corresponding
g_free() is reached. Fix this by switching to g_autofree and, while at
it, also switch to g_new. Do the same in apic_deliver_irq() as well
for consistency.
Fixes: b5ee0468e9 ("apic: add support for x2APIC mode", 2024-02-14)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Bui Quang Minh <minhquangbui99@gmail.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2024-03-08 15:51:22 +01:00
..
2024-01-04 19:55:20 +00:00
2024-02-20 20:34:21 +03:00
2023-12-29 11:17:30 +11:00
2024-02-02 16:23:47 +00:00
2024-03-05 13:22:56 +00:00
2024-01-05 16:20:15 +01:00
2023-11-28 14:27:12 +01:00
2024-02-27 13:01:41 +00:00
2024-03-05 13:22:55 +00:00
2024-02-28 09:11:42 +00:00
2024-01-26 11:30:49 +00:00
2024-02-02 16:23:47 +00:00
2024-02-14 06:09:33 -05:00
2024-02-27 09:37:25 +01:00
2024-02-15 16:58:46 +01:00
2024-02-01 08:33:18 +01:00
2024-02-27 13:01:42 +00:00
2024-02-27 09:37:13 +01:00
2024-02-04 17:42:03 +01:00
2024-03-05 13:22:55 +00:00
2024-02-28 00:23:36 +01:00
2024-02-28 00:23:39 +01:00
2024-02-22 12:47:35 +01:00
2024-03-08 15:51:22 +01:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2024-02-22 15:44:29 +00:00
2024-02-29 19:32:45 +08:00
2024-02-02 16:23:47 +00:00
2024-02-14 06:09:33 -05:00
2024-02-02 16:23:47 +00:00
2024-02-27 09:37:11 +01:00
2024-03-05 13:22:56 +00:00
2024-02-28 11:31:28 +08:00
2023-11-23 14:10:04 +00:00
2024-02-27 09:36:39 +01:00
2024-02-27 09:37:30 +01:00
2024-02-22 12:47:40 +01:00
2024-02-02 16:23:47 +00:00
2024-02-02 18:56:32 +00:00
2024-02-14 06:09:33 -05:00
2024-02-22 12:47:40 +01:00
2023-10-27 12:48:57 +01:00
2024-02-27 09:37:25 +01:00
2023-10-21 15:00:22 +03:00
2024-01-08 10:45:43 -05:00
2024-02-09 20:43:14 +10:00
2024-02-27 13:01:41 +00:00
2024-02-15 16:58:46 +01:00
2024-02-02 18:56:32 +00:00
2024-03-08 15:51:21 +01:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-02-27 09:37:25 +01:00
2024-02-14 06:09:33 -05:00
2024-02-22 12:47:40 +01:00
2024-02-15 16:58:46 +01:00
2024-02-27 13:01:41 +00:00
2024-02-27 13:01:41 +00:00
2024-02-29 11:35:36 -10:00
2024-02-22 12:47:40 +01:00
2023-12-05 13:57:18 +09:00
2024-03-01 08:27:33 +01:00
2024-02-28 11:31:28 +08:00
2024-02-28 11:31:28 +08:00
2023-12-30 07:38:06 +11:00
2024-02-02 18:56:32 +00:00
2024-02-02 16:23:47 +00:00
2024-02-02 16:23:47 +00:00
2024-02-01 08:13:30 +01:00
2024-02-01 08:13:30 +01:00