summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dma-helpers.c')
-rw-r--r--dma-helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dma-helpers.c b/dma-helpers.c
index 7971a89c1..7e7e415cf 100644
--- a/dma-helpers.c
+++ b/dma-helpers.c
@@ -33,6 +33,7 @@ void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len)
void qemu_sglist_destroy(QEMUSGList *qsg)
{
g_free(qsg->sg);
+ memset(qsg, 0, sizeof(*qsg));
}
typedef struct {