aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/benchmark.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-03 01:19:25 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-03 01:19:25 +0000
commit5adc8bdbb1471821f912becbba86e4631a4a001a (patch)
treefb0dabc347ab5050c13a9da4a1519eef752110ad /hardinfo2/benchmark.c
parentbe4b5ba0d143edd1001f33d226e10ef2c58f42ff (diff)
Cleanups. Implement DEBUG() macro.
Diffstat (limited to 'hardinfo2/benchmark.c')
-rw-r--r--hardinfo2/benchmark.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/hardinfo2/benchmark.c b/hardinfo2/benchmark.c
index c6b1be62..49a5221a 100644
--- a/hardinfo2/benchmark.c
+++ b/hardinfo2/benchmark.c
@@ -60,13 +60,13 @@ static gchar *__benchmark_include_results(gchar * results,
ShellOrderType order_type)
{
GKeyFile *conf;
- gchar **machines, *bconf_path;
+ gchar **machines;
int i;
conf = g_key_file_new();
- bconf_path =
- g_build_filename(params.path_data, "benchmark.conf", NULL);
- g_key_file_load_from_file(conf, bconf_path, 0, NULL);
+ g_key_file_load_from_file(conf,
+ idle_free(g_build_filename(params.path_data, "benchmark.conf", NULL)),
+ 0, NULL);
machines = g_key_file_get_keys(conf, benchmark, NULL, NULL);
for (i = 0; machines && machines[i]; i++) {
@@ -79,7 +79,6 @@ static gchar *__benchmark_include_results(gchar * results,
g_strfreev(machines);
g_key_file_free(conf);
- g_free(bconf_path);
return g_strdup_printf("[$ShellParam$]\n"
"Zebra=1\n"