util/sparse_array: Finish the sparse_array in the tests
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 19 Mar 2020 14:39:38 +0000 (09:39 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 20 Mar 2020 20:26:07 +0000 (15:26 -0500)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4228>

src/util/tests/sparse_array/multi_threaded.c

index b7b4e73a1dcb9193eabace5a4d67c1781dcbb73e..b084ac994e4cb434066ba0079bcea99e705c2ac2 100644 (file)
@@ -72,6 +72,8 @@ run_test(unsigned run_idx)
       uint32_t *elem = util_sparse_array_get(&arr, i);
       assert(*elem == 0 || *elem == i);
    }
+
+   util_sparse_array_finish(&arr);
 }
 
 int