- // Note: Do not free(args) here IF your thread function (parallel_search_cols)
- // is already calling free(arg) internally!
- // Since your original thread function calls free(args), calling it here
- // would cause a "double free" crash.
- // However, since we allocated it as one big array, it is better to remove
- // free(args) from your thread function and do it here:
- free(args);