diff options
Diffstat (limited to 'cutils.c')
-rw-r--r-- | cutils.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -217,7 +217,10 @@ void qemu_iovec_destroy(QEMUIOVector *qiov) { assert(qiov->nalloc != -1); + qemu_iovec_reset(qiov); g_free(qiov->iov); + qiov->nalloc = 0; + qiov->iov = NULL; } void qemu_iovec_reset(QEMUIOVector *qiov) |