From 2c83ebeddaa0a02e1e6779a2074742b092356cf2 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Mon, 8 Sep 2014 13:35:48 +0200 Subject: [PATCH] do not depend on g_lib_free_full yet ... RH6 at least does not have a recent enough glibc --- src/rrd_create.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rrd_create.c b/src/rrd_create.c index 13f98fb2..6d126c3b 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -227,7 +227,8 @@ done: } if (sources != NULL) { // this will free the list elements as well - g_list_free_full(sources, free); + g_list_foreach( sources, (GFunc)free, NULL ); + g_list_free( sources ); sources = NULL; } if (template != NULL) { @@ -915,7 +916,8 @@ int rrd_create_r2( rc = write_rrd(filename, &rrd); done: - g_list_free_full(sources_rrd_files, (GDestroyNotify) cleanup_source_file); + g_list_foreach( sources_rrd_files, (GFunc) cleanup_source_file, NULL ); + g_list_free( sources_rrd_files ); if (mappings) { int ii; -- 2.47.3