Browse Source

tests/main/pack.c: free allocated memory

Nathalie Furmento 4 years ago
parent
commit
7090cb088e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/main/pack.c

+ 3 - 0
tests/main/pack.c

@@ -91,6 +91,9 @@ void func_dup_arg(void *descr[], void *_args)
 
         FPRINTF(stderr, "[codelet dup_arg] values: %d %c %d\n", *factor, *c, *x);
 	assert(*factor == 12 && *c == 'n' && *x == 42);
+	free(factor);
+	free(c);
+	free(x);
 }
 
 struct starpu_codelet mycodelet_dup_arg =