We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38250f6 commit 9a7158dCopy full SHA for 9a7158d
1 file changed
deps/uv/src/unix/sunos.c
@@ -349,7 +349,7 @@ uv_err_t uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
349
350
knp = (kstat_named_t *) kstat_data_lookup(ksp, (char *)"brand");
351
assert(knp->data_type == KSTAT_DATA_STRING);
352
- cpu_info->model = KSTAT_NAMED_STR_PTR(knp);
+ cpu_info->model = strdup(KSTAT_NAMED_STR_PTR(knp));
353
}
354
355
lookup_instance++;
0 commit comments