Fixed a memory leak in freeing the thread infos

This commit is contained in:
Tyler Michael Smith
2015-02-20 20:38:19 -06:00
parent af32e3a608
commit c2569b8803
4 changed files with 8 additions and 0 deletions

View File

@@ -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 );

View File

@@ -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 );

View File

@@ -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 );

View File

@@ -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 );