Преглед изворни кода

Actually free the hashtable

Samuel Thibault пре 13 година
родитељ
комит
71a1d6521a
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/common/htable32.c

+ 2 - 0
src/common/htable32.c

@@ -121,6 +121,8 @@ static void _starpu_htbl_destroy_32_bit(struct starpu_htbl32_node *htbl, unsigne
 	for (i = 0; i < 1<<_STARPU_HTBL32_NODE_SIZE; i++) {
 	for (i = 0; i < 1<<_STARPU_HTBL32_NODE_SIZE; i++) {
 		_starpu_htbl_destroy_32_bit(htbl->children[i], bit+_STARPU_HTBL32_NODE_SIZE, remove);
 		_starpu_htbl_destroy_32_bit(htbl->children[i], bit+_STARPU_HTBL32_NODE_SIZE, remove);
 	}
 	}
+
+	free(htbl);
 }
 }
 void _starpu_htbl_destroy_32(struct starpu_htbl32_node *htbl, void (*remove)(void*))
 void _starpu_htbl_destroy_32(struct starpu_htbl32_node *htbl, void (*remove)(void*))
 {
 {