mirror of
https://github.com/amd/blis.git
synced 2026-05-11 09:39:59 +00:00
Fixed a memory leak in freeing the thread infos
This commit is contained in:
@@ -91,6 +91,8 @@ void bli_gemm_thrinfo_free( gemm_thrinfo_t* thread)
|
||||
// Free Communicators
|
||||
if( thread_am_ochief( thread ) )
|
||||
bli_free_communicator( thread->ocomm );
|
||||
if( thread->sub_gemm == NULL && thread_am_ichief( thread ) )
|
||||
bli_free_communicator( thread->icomm );
|
||||
|
||||
// Free Sub Thrinfos
|
||||
bli_packm_thrinfo_free( thread->opackm );
|
||||
|
||||
@@ -91,6 +91,8 @@ void bli_herk_thrinfo_free( herk_thrinfo_t* thread)
|
||||
// Free Communicators
|
||||
if( thread_am_ochief( thread ) )
|
||||
bli_free_communicator( thread->ocomm );
|
||||
if( thread->sub_herk == NULL && thread_am_ichief( thread ) )
|
||||
bli_free_communicator( thread->icomm );
|
||||
|
||||
// Free Sub Thrinfos
|
||||
bli_packm_thrinfo_free( thread->opackm );
|
||||
|
||||
@@ -91,6 +91,8 @@ void bli_trmm_thrinfo_free( trmm_thrinfo_t* thread)
|
||||
// Free Communicators
|
||||
if( thread_am_ochief( thread ) )
|
||||
bli_free_communicator( thread->ocomm );
|
||||
if( thread->sub_trmm == NULL && thread_am_ichief( thread ) )
|
||||
bli_free_communicator( thread->icomm );
|
||||
|
||||
// Free Sub Thrinfos
|
||||
bli_packm_thrinfo_free( thread->opackm );
|
||||
|
||||
@@ -91,6 +91,8 @@ void bli_trsm_thrinfo_free( trsm_thrinfo_t* thread)
|
||||
// Free Communicators
|
||||
if( thread_am_ochief( thread ) )
|
||||
bli_free_communicator( thread->ocomm );
|
||||
if( thread->sub_trsm == NULL && thread_am_ichief( thread ) )
|
||||
bli_free_communicator( thread->icomm );
|
||||
|
||||
// Free Sub Thrinfos
|
||||
bli_packm_thrinfo_free( thread->opackm );
|
||||
|
||||
Reference in New Issue
Block a user