Skip to content
Permalink
Browse files

x86/processor: update malloc

Co-Authored-By: Leandro A. F. Pereira <leandro@hardinfo.org>
  • Loading branch information
ocerman and lpereira committed Nov 16, 2019
1 parent 2b6483c commit 789d1e9c40e0b2526ee685e8ba591464c56d0e92
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/devices/x86/processor.c
@@ -456,7 +456,7 @@ GSList *processor_scan(void)
FILE *cpuinfo;
gchar *buffer;

buffer = (gchar *) g_malloc(PROC_SCAN_READ_BUFFER_SIZE * sizeof(gchar));
buffer = g_malloc(PROC_SCAN_READ_BUFFER_SIZE);
cpuinfo = fopen(PROC_CPUINFO, "r");
if (!cpuinfo)
return NULL;

0 comments on commit 789d1e9

Please sign in to comment.
You can’t perform that action at this time.