From: Tobias Oetiker Date: Mon, 8 Sep 2014 11:35:48 +0000 (+0200) Subject: do not depend on g_lib_free_full yet ... RH6 at least does not have a recent enough... X-Git-Tag: v1.5.0-rc1~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c83ebeddaa0a02e1e6779a2074742b092356cf2;p=thirdparty%2Frrdtool-1.x.git do not depend on g_lib_free_full yet ... RH6 at least does not have a recent enough glibc --- 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;