Commit d107f818 authored by Philip Carns's avatar Philip Carns

fix use-after-free bug

parent 3a5a42eb
......@@ -509,13 +509,14 @@ static void bw_ult(hg_handle_t handle)
margo_destroy(handle);
free(tid_array);
free(arg_array);
ABT_mutex_free(&cur_off_mutex);
if(arg_array[0].op == HG_BULK_PUSH)
ABT_eventual_set(g_bw_done_eventual, NULL, 0);
free(arg_array);
return;
}
DEFINE_MARGO_RPC_HANDLER(bw_ult)
......
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