aboutsummaryrefslogtreecommitdiff
path: root/backends/rng-egd.c
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2013-11-21 16:42:50 +0800
committerAnthony Liguori <aliguori@amazon.com>2013-11-21 07:55:37 -0800
commit5e490b6a504912225dff0e520e1c6af68295d238 (patch)
tree0980821e0b2f9a59826f9df3b5650bbfbb8cbbe9 /backends/rng-egd.c
parentd44bb8604e87ecd3823f12f0c92d5e56d613de0d (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> Message-id: 1385023371-8198-2-git-send-email-akong@redhat.com Signed-off-by: Anthony Liguori <aliguori@amazon.com>
Diffstat (limited to 'backends/rng-egd.c')
-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);
}
}