It was possible to call VIR_FREE in cleanup prior to initialization.
---
 src/storage/storage_backend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index c2c4c51..cab72c6 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -141,7 +141,7 @@ virStorageBackendCopyToFD(virStorageVolDefPtr vol,
     size_t rbytes = READ_BLOCK_SIZE_DEFAULT;
     size_t wbytes = 0;
     int interval;
-    char *zerobuf;
+    char *zerobuf = NULL;
     char *buf = NULL;
     struct stat st;
 
-- 
1.7.11.7

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to