]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: snapshot: Drop unused variable 'creation'
authorYi Li <yili@winhong.com>
Thu, 11 Jun 2020 03:26:29 +0000 (11:26 +0800)
committerErik Skultety <eskultet@redhat.com>
Thu, 11 Jun 2020 07:30:18 +0000 (09:30 +0200)
Signed-off-by: Yi Li <yili@winhong.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/conf/snapshot_conf.c

index 857d04c476a90535401dc7d5371f49f9a79cfac1..f73eeb06c760a6c0cd490fd5308ea1a191c4f7a3 100644 (file)
@@ -231,7 +231,7 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt,
     xmlNodePtr inactiveDomNode = NULL;
     size_t i;
     int n;
-    char *creation = NULL, *state = NULL;
+    char *state = NULL;
     int active;
     char *tmp;
     char *memorySnapshot = NULL;
@@ -404,7 +404,6 @@ virDomainSnapshotDefParse(xmlXPathContextPtr ctxt,
     ret = g_steal_pointer(&def);
 
  cleanup:
-    VIR_FREE(creation);
     VIR_FREE(state);
     VIR_FREE(nodes);
     VIR_FREE(memorySnapshot);