diff --git a/util/qemu-option.c b/util/qemu-option.c index c779150808..d3ab65d24f 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -230,7 +230,7 @@ bool has_help_option(const char *param) } out: - free(buf); + g_free(buf); return result; } @@ -255,7 +255,7 @@ bool is_valid_option_list(const char *param) } out: - free(buf); + g_free(buf); return result; }