Commit 727ebc3a authored by Ted Lemon's avatar Ted Lemon
Browse files

Strip the waiter from its object after the wait completes!

parent 2f11d5e1
......@@ -142,6 +142,23 @@ isc_result_t omapi_wait_for_completion (omapi_object_t *object,
return status;
} while (!waiter || !waiter -> ready);
if (waiter -> outer) {
if (waiter -> outer -> inner) {
omapi_object_dereference (&waiter -> outer -> inner,
"omapi_wait_for_completion");
if (waiter -> inner)
omapi_object_reference
(&waiter -> outer -> inner,
waiter -> inner,
"omapi_wait_for_completion");
}
omapi_object_dereference (&waiter -> outer,
"omapi_wait_for_completion");
}
if (waiter -> inner)
omapi_object_dereference (&waiter -> inner,
"omapi_wait_for_completion");
omapi_object_dereference ((omapi_object_t **)&waiter,
"omapi_wait_for_completion");
return ISC_R_SUCCESS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment