mirror of https://github.com/xemu-project/xemu.git
pr-manager: Fix invalid g_free() crash bug
pr_manager_worker() passes its @opaque argument to g_free(). Wrong; it points to pr_manager_worker()'s automatic @data. Broken when commit2f3a7ab39b
converted @data from heap- to stack-allocated. Fix by deleting the g_free(). Fixes:2f3a7ab39b
Cc: qemu-stable@nongnu.org Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
ae6ef01909
commit
6b9d62c2a9
|
@ -39,7 +39,6 @@ static int pr_manager_worker(void *opaque)
|
|||
int fd = data->fd;
|
||||
int r;
|
||||
|
||||
g_free(data);
|
||||
trace_pr_manager_run(fd, hdr->cmdp[0], hdr->cmdp[1]);
|
||||
|
||||
/* The reference was taken in pr_manager_execute. */
|
||||
|
|
Loading…
Reference in New Issue