diff options
author | swapnili <swapnil.ingle@nutanix.com> | 2021-01-08 17:02:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 17:02:44 +0100 |
commit | 9ce88433cc185866519fb0ec3ef84d99db739b9f (patch) | |
tree | c013b9c5b050c969e6ecb051a461ea16c2147057 /lib | |
parent | d211f2cf4920e7f082bb5e707c672cecb6f52a6c (diff) | |
download | libvfio-user-9ce88433cc185866519fb0ec3ef84d99db739b9f.zip libvfio-user-9ce88433cc185866519fb0ec3ef84d99db739b9f.tar.gz libvfio-user-9ce88433cc185866519fb0ec3ef84d99db739b9f.tar.bz2 |
Fix error path (#229)
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -450,6 +450,7 @@ int dma_controller_dirty_page_logging_start(dma_controller_t *dma, size_t pgsize if (region->dirty_bitmap == NULL) { int j, ret = -errno; for (j = 0; j < i; j++) { + region = &dma->regions[j]; free(region->dirty_bitmap); region->dirty_bitmap = NULL; } |