Explorar o código

tests/main/insert_task_dyn_handles.c: free allocated memory

Nathalie Furmento %!s(int64=10) %!d(string=hai) anos
pai
achega
daea09fa16
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/main/insert_task_dyn_handles.c

+ 4 - 0
tests/main/insert_task_dyn_handles.c

@@ -88,12 +88,15 @@ enodev:
         }
 
 	starpu_shutdown();
+	free(data_handles);
+	free(descrs);
 
 	if (ret == -ENODEV)
 	{
 		fprintf(stderr, "WARNING: No one can execute this task\n");
 		/* yes, we do not perform the computation but we did detect that no one
 		 * could perform the kernel, so this is not an error from StarPU */
+		free(x);
 		return STARPU_TEST_SKIPPED;
 	}
 	else
@@ -118,6 +121,7 @@ enodev:
 		{
 			FPRINTF(stderr, "[end of loop] all values are correct\n");
 		}
+		free(x);
 		return ret;
 	}
 }