Samuel Thibault před 13 roky
rodič
revize
4b3ad068db
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      examples/heat/dw_factolu.c

+ 2 - 0
examples/heat/dw_factolu.c

@@ -352,6 +352,7 @@ void dw_callback_v2_codelet_update_u11(void *argcb)
 		finished = 1;
 		pthread_cond_signal(&cond);
 		pthread_mutex_unlock(&mutex);
+		free(argcb);
 		return;
 	}
 	else 
@@ -468,6 +469,7 @@ void dw_callback_codelet_update_u11(void *argcb)
 		finished = 1;
 		pthread_cond_signal(&cond);
 		pthread_mutex_unlock(&mutex);
+		free(argcb);
 		return;
 	}
 	else