From: Amos Kong <ak...@redhat.com> We didn't set default chr_name, the free is redundant.
Signed-off-by: Amos Kong <ak...@redhat.com> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> --- backends/rng-egd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/backends/rng-egd.c b/backends/rng-egd.c index 9e5a536..6f56f9e 100644 --- a/backends/rng-egd.c +++ b/backends/rng-egd.c @@ -167,7 +167,6 @@ static void rng_egd_set_chardev(Object *obj, const char *value, Error **errp) if (b->opened) { error_set(errp, QERR_PERMISSION_DENIED); } else { - g_free(s->chr_name); s->chr_name = g_strdup(value); } } -- 1.8.3.1