From 5adc8bdbb1471821f912becbba86e4631a4a001a Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Wed, 3 Jan 2007 01:19:25 +0000 Subject: Cleanups. Implement DEBUG() macro. --- hardinfo2/benchmark.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'hardinfo2/benchmark.c') 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" -- cgit v1.2.3