Commit 5e490b6a authored by Amos Kong's avatar Amos Kong Committed by Anthony Liguori
Browse files

rng-egd: remove redundant free



We didn't set default chr_name, the free is redundant.

Signed-off-by: default avatarAmos Kong <akong@redhat.com>
Message-id: 1385023371-8198-2-git-send-email-akong@redhat.com
Signed-off-by: default avatarAnthony Liguori <aliguori@amazon.com>
parent d44bb860
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
    }
}