[hipl-commit] [tiny] Rev 3587: Accurate usage of hip_ll_uninit in libmodularization.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 1 Mar 2010 13:13:28 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Mon Mar 01 12:11:40 2010 +0100
Revision: 3587
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Accurate usage of hip_ll_uninit in libmodularization.
  
  Now the elements of the linked list are freed separately.

Modified:
  M  lib/modularization/modularization.c

=== modified file 'lib/modularization/modularization.c'
--- lib/modularization/modularization.c 2010-02-25 17:31:28 +0000
+++ lib/modularization/modularization.c 2010-03-01 11:11:40 +0000
@@ -395,7 +395,7 @@
 {
     unsigned int      i;
 
-    hip_ll_uninit(state->item_list, NULL);
+    hip_ll_uninit(state->item_list, free);
     free(state->item_list);
 
     for (i = 0; i < state->num_items; i++) {

Other related posts:

  • » [hipl-commit] [tiny] Rev 3587: Accurate usage of hip_ll_uninit in libmodularization. - Tim Just