Skip to content
Snippets Groups Projects

Resolve "memory leak in async code"

Merged Ali Mohammed requested to merge 64-memory-leak-in-async-code into devel
2 files
+ 6
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
0
@@ -1272,6 +1272,7 @@ mstro_status
@@ -1272,6 +1272,7 @@ mstro_status
mstro_pool__demand_async_no_pm(mstro_cdo cdo, mstro_cdo_state new_state)
mstro_pool__demand_async_no_pm(mstro_cdo cdo, mstro_cdo_state new_state)
{
{
 
assert(MSTRO_CDO_STATE_DEMANDED == new_state);
// increase waiters by one
// increase waiters by one
return mstro_pool_cdo_waiters(cdo, 1);
return mstro_pool_cdo_waiters(cdo, 1);
}
}
@@ -1706,6 +1707,8 @@ mstro_pool__demand_async_with_pm(mstro_cdo cdo, mstro_cdo_state new_state)
@@ -1706,6 +1707,8 @@ mstro_pool__demand_async_with_pm(mstro_cdo cdo, mstro_cdo_state new_state)
{
{
mstro_status status = MSTRO_UNIMPL;
mstro_status status = MSTRO_UNIMPL;
 
assert(MSTRO_CDO_STATE_DEMANDED == new_state);
 
/* tell pool manager it's urgent now */
/* tell pool manager it's urgent now */
/* that will eventually kick off a transport occuring and filling in
/* that will eventually kick off a transport occuring and filling in
* a CDO OFFER that can be used to satisfy this demand. We'll be
* a CDO OFFER that can be used to satisfy this demand. We'll be
Loading