diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2014-09-04 19:10:47 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-09-18 21:51:24 +0300 |
commit | abb4d5f2e2830b7a6dc4ddcc612dfab15e3a320d (patch) | |
tree | 9203bea357377b3122a4cf0d4486f3450f075fa1 /backends | |
parent | b3ce84fea466f3bca2ff85d158744f00c0f429bd (diff) |
Revert "rng-egd: remove redundant free"
This reverts commit 5e490b6a504912225dff0e520e1c6af68295d238.
Cc: qemu-stable@nongnu.org
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'backends')
-rw-r--r-- | backends/rng-egd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/rng-egd.c b/backends/rng-egd.c index 25bb3b453b..2962795a8f 100644 --- a/backends/rng-egd.c +++ b/backends/rng-egd.c @@ -169,6 +169,7 @@ 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); } } |