From 016fc587584d958a0e430a56a5e2c05022ac2f17 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Fri, 27 Mar 2015 14:23:02 -0500 Subject: [PATCH] Don't free packm thread info if it is null --- frame/1m/packm/bli_packm_threading.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frame/1m/packm/bli_packm_threading.c b/frame/1m/packm/bli_packm_threading.c index 8fc45ef29..37010cbcf 100644 --- a/frame/1m/packm/bli_packm_threading.c +++ b/frame/1m/packm/bli_packm_threading.c @@ -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,