aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2013-11-21 16:42:50 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2013-11-21 17:39:15 +0100
commit60aad298cb6de52f2716b2e82e1353ea9de95fd6 (patch)
treea2642289649c9af4d3d75d5184567b01aee0d175
parent2140cfa51d59177815f5b82e94ac48fb24909aba (diff)
rng-egd: remove redundant free
We didn't set default chr_name, the free is redundant. Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--backends/rng-egd.c1
1 files changed, 0 insertions, 1 deletions
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);
}
}