@@ -199,7 +199,7 @@ void add_to_bucket(int id,int i,int j,bucket_list_t bucket_list)
199199 /* display_bucket(bucket);*/
200200 if (verbose_level >= DEBUG ){
201201 printf ("Extending bucket %d (%p) from size %d to size %d!\n" ,
202- id , (void * )bucket -> bucket , bucket -> nb_elem , bucket -> nb_elem + size );
202+ id ,(void * )bucket -> bucket , bucket -> nb_elem , bucket -> nb_elem + size );
203203 }
204204
205205 bucket -> bucket = (coord * )REALLOC (bucket -> bucket ,sizeof (coord )* (size + bucket -> bucket_len ));
@@ -525,7 +525,7 @@ void partial_update_val (int nb_args, void **args, int thread_id){
525525
526526 if (nb_args != 5 ){
527527 if (verbose_level >= ERROR )
528- fprintf (stderr ,"(Thread: %d) Wrong number of args in %s: %d\n" ,thread_id , __func__ , nb_args );
528+ fprintf (stderr ,"(Thread: %d) Wrong number of args in %s: %d\n" ,thread_id , __FUNCTION__ , nb_args );
529529 exit (-1 );
530530 }
531531
@@ -648,6 +648,7 @@ double bucket_grouping(tm_affinity_mat_t *aff_mat,tm_tree_t *tab_node, tm_tree_t
648648 wait_work_completion (works [id ]);
649649 val += tab_val [id ];
650650 FREE (works [id ]-> args );
651+ destroy_work (works [id ]);
651652 }
652653
653654
0 commit comments