From: Eduardo Habkost Date: Thu, 4 Sep 2014 16:10:47 +0000 (+0300) Subject: Revert "rng-egd: remove redundant free" X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~585^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abb4d5f2e2830b7a6dc4ddcc612dfab15e3a320d;p=sdk%2Femulator%2Fqemu.git Revert "rng-egd: remove redundant free" This reverts commit 5e490b6a504912225dff0e520e1c6af68295d238. Cc: qemu-stable@nongnu.org Reviewed-by: Markus Armbruster Signed-off-by: Eduardo Habkost Signed-off-by: Michael S. Tsirkin --- diff --git a/backends/rng-egd.c b/backends/rng-egd.c index 25bb3b4..2962795 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); } }