修复BUG,当线程数超过32时会存在内存越界的问题

This commit is contained in:
liuxueli
2019-07-04 18:35:31 +08:00
parent b11daf0343
commit 2f88525096

View File

@@ -622,7 +622,7 @@ int NTC_APP_PLUG_INIT()
}
#endif
int max_thread_num = get_thread_count();
g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(32, sizeof(MESA_htable_handle));
g_ntc_app_plug.lhash_handle = (MESA_htable_handle *)calloc(max_thread_num, sizeof(MESA_htable_handle));
args.thread_safe = 0;
args.recursive = 0;