diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index a51622affe..94a77ce862 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -2274,6 +2274,8 @@ virStorageSourceClear(virStorageSourcePtr def) VIR_FREE(def->nodeformat); virStorageSourceBackingStoreClear(def); + + memset(def, 0, sizeof(*def)); }