Merge io/ 2017/01/26
-----BEGIN PGP SIGNATURE----- iQIbBAABCAAGBQJYic7oAAoJEL6G67QVEE/f8pMP93CT+wKBGHJIsj/jFWRyH+nJ D9AVDpfdPkDaf7IOrbLTckQJDwc42CHrxEYkY44F7ynTW7fETqIySOr9ffTtOG6Y UDQ5aXE2r9P8tsvhuEm4rdirh16aVIvZfMt7ggDaf6j9qc80Ri+9n5jFLTxc7q7Z nwZZEXEFQbDFFZUYKbVTAUfP/aSS9mBoi/PLZUKib+Gr5VScFg4Y1jTbRPwMITJp 4V7B9+ChlxOP0W1sHMI3EfJ0hICK9DlVsnOyBLP7dzPkaU5UQiPUIVYyMeA136B5 A3ZUKlLlJAKEPi2rod1kDM8UPWkWB9dAHimJ5q0behmrUL4w/LERpVP5K11n8rr3 YEeDVP1ZApYqa0ESM3fqy6BHJ2ww10geQ3hAdracPO3rA6pkXjgaywWHxsYQ1qRi C7oDEta9e06CaS5jQtU7nJkq/haflWhLfBMiVkkmrV4Kgajt3usfg7M8AZk6JyMt pf1IWCRF4/Q6LHiqnOFjpCLqOy0JX5AmYOBS5gpa37YFMrd+LpMbY55EkPIuZs4+ QEIHDEhFhbwNScleQ4iDF1ZMHEZRWs1j/1clju8E1FKSKRQArMRhmEk1TuenLt4q 87Oun6zlRkrMEO8oKf8rMwHITMJ/PDFDRn90WL1OBBBSypfNuKOZpcny4aGd+n3j 1dLhVb8FaWZ+QPer2V0= =IjEt -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/berrange/tags/pull-qio-2017-01-26-1' into staging Merge io/ 2017/01/26 # gpg: Signature made Thu 26 Jan 2017 10:26:48 GMT # gpg: using RSA key 0xBE86EBB415104FDF # gpg: Good signature from "Daniel P. Berrange <dan@berrange.com>" # gpg: aka "Daniel P. Berrange <berrange@redhat.com>" # Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E 8E3F BE86 EBB4 1510 4FDF * remotes/berrange/tags/pull-qio-2017-01-26-1: io: fix possible double free of task error object Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
8a26d88507
@ -157,6 +157,7 @@ bool qio_task_propagate_error(QIOTask *task,
|
||||
{
|
||||
if (task->err) {
|
||||
error_propagate(errp, task->err);
|
||||
task->err = NULL;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ static void test_task_failure(void)
|
||||
g_assert(data.source == obj);
|
||||
g_assert(data.err == err);
|
||||
g_assert(data.freed == false);
|
||||
|
||||
error_free(data.err);
|
||||
}
|
||||
|
||||
|
||||
@ -238,6 +238,8 @@ static void test_task_thread_failure(void)
|
||||
g_assert(data.source == obj);
|
||||
g_assert(data.err != NULL);
|
||||
|
||||
error_free(data.err);
|
||||
|
||||
self = g_thread_self();
|
||||
|
||||
/* Make sure the test_task_thread_worker actually got
|
||||
|
Loading…
Reference in New Issue
Block a user