Skip to content

Commit e173b28

Browse files
Plug a memory leak in qv_scope::thread_split(). (#280)
Signed-off-by: Samuel K. Gutierrez <[email protected]>
1 parent 3ccfee2 commit e173b28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qvi-scope.cc

+3
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ qv_scope::thread_split(
304304
// implicit retain during construct.
305305
thgroup->release();
306306
}
307+
// Delete the hardware pool container since its contents are now stored in
308+
// the newly created scopes above.
309+
delete[] hwpools;
307310
*thchildren = ithchildren;
308311
return rc;
309312
}

0 commit comments

Comments
 (0)