Skip to content

Commit 9e8d994

Browse files
ehabkostmdroth
authored andcommitted
Revert "rng-egd: remove redundant free"
This reverts commit 5e490b6. Cc: [email protected] Reviewed-by: Markus Armbruster <[email protected]> Signed-off-by: Eduardo Habkost <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> (cherry picked from commit abb4d5f) Signed-off-by: Michael Roth <[email protected]>
1 parent a56b9cf commit 9e8d994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backends/rng-egd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ static void rng_egd_set_chardev(Object *obj, const char *value, Error **errp)
169169
if (b->opened) {
170170
error_set(errp, QERR_PERMISSION_DENIED);
171171
} else {
172+
g_free(s->chr_name);
172173
s->chr_name = g_strdup(value);
173174
}
174175
}

0 commit comments

Comments
 (0)