From: Eduardo Habkost <ehabk...@redhat.com> This reverts commit 5e490b6a504912225dff0e520e1c6af68295d238.
Cc: qemu-sta...@nongnu.org Reviewed-by: Markus Armbruster <arm...@redhat.com> Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> Signed-off-by: Michael S. Tsirkin <m...@redhat.com> --- backends/rng-egd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backends/rng-egd.c b/backends/rng-egd.c index 25bb3b4..2962795 100644 --- a/backends/rng-egd.c +++ b/backends/rng-egd.c @@ -169,6 +169,7 @@ 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); } } -- MST