aboutsummaryrefslogtreecommitdiff
path: root/hw/ssi/pnv_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/ssi/pnv_spi.c')
-rw-r--r--hw/ssi/pnv_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ssi/pnv_spi.c b/hw/ssi/pnv_spi.c
index 9e7207bf7c..d15a5970b4 100644
--- a/hw/ssi/pnv_spi.c
+++ b/hw/ssi/pnv_spi.c
@@ -53,8 +53,8 @@ static PnvXferBuffer *pnv_spi_xfer_buffer_new(void)
static void pnv_spi_xfer_buffer_free(PnvXferBuffer *payload)
{
- free(payload->data);
- free(payload);
+ g_free(payload->data);
+ g_free(payload);
}
static uint8_t *pnv_spi_xfer_buffer_write_ptr(PnvXferBuffer *payload,