Commit b53fe566 authored by Jonathan Jenkins's avatar Jonathan Jenkins

null out hash table to prevent use-after-free

parent c49d786a
...@@ -222,8 +222,10 @@ static void darshan_io_workload_get_next(int rank, struct codes_workload_op *op) ...@@ -222,8 +222,10 @@ static void darshan_io_workload_get_next(int rank, struct codes_workload_op *op)
free(tmp); free(tmp);
rank_tbl_pop--; rank_tbl_pop--;
if (!rank_tbl_pop) if (!rank_tbl_pop){
qhash_finalize(rank_tbl); qhash_finalize(rank_tbl);
rank_tbl = NULL;
}
} }
else else
{ {
......
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