]> Git Repo - qemu.git/blobdiff - qapi/qmp-input-visitor.c
pc: Fix floppy drives with if=none
[qemu.git] / qapi / qmp-input-visitor.c
index fcf8bf920b1ada0aa0e8111dc22ba1ff63aec28d..8cbc0abcfd4c432fc65554807be22a12babac336 100644 (file)
@@ -144,8 +144,6 @@ static GenericList *qmp_input_next_list(Visitor *v, GenericList **list,
         }
         (*list)->next = entry;
     }
-    *list = entry;
-
 
     return entry;
 }
@@ -240,9 +238,11 @@ static void qmp_input_type_enum(Visitor *v, int *obj, const char *strings[],
 
     if (strings[value] == NULL) {
         error_set(errp, QERR_INVALID_PARAMETER, name ? name : "null");
+        g_free(enum_str);
         return;
     }
 
+    g_free(enum_str);
     *obj = value;
 }
 
This page took 0.025032 seconds and 4 git commands to generate.