hw/ppc: Fix memory leak in get_cpu_state_data()
Fixes coverity (CID 1642024) Cc: Aditya Gupta <adityag@linux.ibm.com> Cc: Harsh Prateek Bora <harshpb@linux.ibm.com> Link: https://lore.kernel.org/qemu-devel/CAFEAcA_Bm52bkPi9MH_uugXRR5fj48RtpbOnPNFQtbX=7Mz_yw@mail.gmail.com/ Reported-by: Peter Maydell <peter.maydell@linaro.org> Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Shivang Upadhyay <shivangu@linux.ibm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Link: https://lore.kernel.org/r/20251028080551.92722-3-shivangu@linux.ibm.com Message-ID: <20251028080551.92722-3-shivangu@linux.ibm.com>
This commit is contained in:
parent
4a0ebccf92
commit
ec2b08c74d
1 changed files with 1 additions and 1 deletions
|
|
@ -453,7 +453,7 @@ static FadumpRegEntry *populate_cpu_reg_entries(CPUState *cpu,
|
|||
static void *get_cpu_state_data(uint64_t *cpu_state_len)
|
||||
{
|
||||
FadumpRegSaveAreaHeader reg_save_hdr;
|
||||
FadumpRegEntry *reg_entries;
|
||||
g_autofree FadumpRegEntry *reg_entries = NULL;
|
||||
FadumpRegEntry *curr_reg_entry;
|
||||
CPUState *cpu;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue