Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Hotfix for #3528 Add strdup in uv_cpu_info
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jun 25, 2012
1 parent 38250f6 commit 9a7158d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/uv/src/unix/sunos.c
Expand Up @@ -349,7 +349,7 @@ uv_err_t uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {

knp = (kstat_named_t *) kstat_data_lookup(ksp, (char *)"brand");
assert(knp->data_type == KSTAT_DATA_STRING);
cpu_info->model = KSTAT_NAMED_STR_PTR(knp);
cpu_info->model = strdup(KSTAT_NAMED_STR_PTR(knp));
}

lookup_instance++;
Expand Down

0 comments on commit 9a7158d

Please sign in to comment.