Don't free packm thread info if it is null

This commit is contained in:
Tyler Smith
2015-03-27 14:23:02 -05:00
parent 00a443c529
commit 016fc58758

View File

@@ -36,8 +36,8 @@
void bli_packm_thrinfo_free( packm_thrinfo_t* thread )
{
//Assume that the ocomm and the icomm are freed by something else and don't need to be freed.
bli_free(thread);
if( thread != NULL )
bli_free(thread);
}
packm_thrinfo_t* bli_create_packm_thread_info( thread_comm_t* ocomm, dim_t ocomm_id, thread_comm_t* icomm, dim_t icomm_id,