forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/tools/testing/radix-tree/regression1.c
....@@ -177,7 +177,7 @@
177177 nr_threads = 2;
178178 pthread_barrier_init(&worker_barrier, NULL, nr_threads);
179179
180
- threads = malloc(nr_threads * sizeof(pthread_t *));
180
+ threads = malloc(nr_threads * sizeof(*threads));
181181
182182 for (i = 0; i < nr_threads; i++) {
183183 arg = i;