Skip to content

Commit

Permalink
rng-egd: remove redundant free
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
amoskong authored and bonzini committed Nov 21, 2013
1 parent 2140cfa commit 60aad29
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion backends/rng-egd.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 60aad29

Please sign in to comment.