OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2140cfa
)
rng-egd: remove redundant free
author
Amos Kong
<akong@redhat.com>
Thu, 21 Nov 2013 08:42:50 +0000
(16:42 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Thu, 21 Nov 2013 16:39:15 +0000
(17:39 +0100)
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>
backends/rng-egd.c
patch
|
blob
|
history
diff --git
a/backends/rng-egd.c
b/backends/rng-egd.c
index
9e5a536
..
6f56f9e
100644
(file)
--- 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);
}
}