mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-07 06:57:42 -07:00
hw/ssi/pnv_spi: Fixes Coverity CID 1558831
In this commit the following coverity scan defect has been fixed CID 1558831: Resource leaks (RESOURCE_LEAK) Variable "rsp_payload" going out of scope leaks the storage it points to. Cc: qemu-stable@nongnu.org Fixes: Coverity CID 1558831 Signed-off-by: Chalapathi V <chalapathi.v@linux.ibm.com> Fixes:b4cb930e40("hw/ssi: Extend SPI model") [PMD: Rebased on previous commit (returning earlier)] Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> (cherry picked from commit031324472e) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
2408ff818d
commit
2a5eec6dd2
1 changed files with 1 additions and 0 deletions
|
|
@ -239,6 +239,7 @@ static void transfer(PnvSpi *s, PnvXferBuffer *payload)
|
|||
}
|
||||
}
|
||||
spi_response(s, s->N1_bits, rsp_payload);
|
||||
pnv_spi_xfer_buffer_free(rsp_payload);
|
||||
}
|
||||
|
||||
static inline uint8_t get_seq_index(PnvSpi *s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue