summaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 15:00:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 15:00:59 +0000
commit982fc7184d46621948e53b485c7504c9d11f3350 (patch)
treeca218a5ad0f5395fd3f39a22754b767c04265711 /wsutil
parentReleasing progress-linux version 4.2.4-1~progress7.99u1. (diff)
downloadwireshark-982fc7184d46621948e53b485c7504c9d11f3350.tar.xz
wireshark-982fc7184d46621948e53b485c7504c9d11f3350.zip
Merging upstream version 4.2.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/cpu_info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wsutil/cpu_info.c b/wsutil/cpu_info.c
index f9e6aa2..8b06b07 100644
--- a/wsutil/cpu_info.c
+++ b/wsutil/cpu_info.c
@@ -201,7 +201,7 @@ get_cpu_info(GString *str)
/*
* Allocate a buffer for the subkey.
*/
- subkey_buf = (wchar_t *)g_malloc(max_subkey_len * sizeof (wchar_t));
+ subkey_buf = g_new(wchar_t, max_subkey_len);
if (subkey_buf == NULL) {
/* Just give up. */
g_tree_destroy(model_names);
@@ -383,6 +383,7 @@ get_cpu_info(GString *str)
*/
uint32_t CPUInfo[4];
char CPUBrandString[0x40];
+ char *model_name;
unsigned nExIds;
/*