about summary refs log tree commit diff homepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/sort/sort.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/sort/sort.c b/examples/sort/sort.c
index 62e4124e..a72ccf1e 100644
--- a/examples/sort/sort.c
+++ b/examples/sort/sort.c
@@ -66,6 +66,9 @@ void test(int *array, unsigned nelem) {
 
   for (unsigned i = 0; i != nelem; ++i)
     assert(temp1[i] == temp2[i]);
+
+  free(temp1);
+  free(temp2);
 }
 
 int main() {