aboutsummaryrefslogtreecommitdiff
path: root/backends
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
parentd44bb8604e87ecd3823f12f0c92d5e56d613de0d (diff)
downloadqemu-5e490b6a504912225dff0e520e1c6af68295d238.zip
qemu-5e490b6a504912225dff0e520e1c6af68295d238.tar.gz
qemu-5e490b6a504912225dff0e520e1c6af68295d238.tar.bz2
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')
-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 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);
}
}