From 5e490b6a504912225dff0e520e1c6af68295d238 Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Thu, 21 Nov 2013 16:42:50 +0800 Subject: rng-egd: remove redundant free We didn't set default chr_name, the free is redundant. Signed-off-by: Amos Kong Message-id: 1385023371-8198-2-git-send-email-akong@redhat.com Signed-off-by: Anthony Liguori --- backends/rng-egd.c | 1 - 1 file changed, 1 deletion(-) (limited to 'backends') diff --git a/backends/rng-egd.c b/backends/rng-egd.c index 9e5a5366f7..6f56f9e4e4 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); } } -- cgit v1.2.3