]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
do not depend on g_lib_free_full yet ... RH6 at least does not have a recent enough...
authorTobias Oetiker <tobi@oetiker.ch>
Mon, 8 Sep 2014 11:35:48 +0000 (13:35 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 8 Sep 2014 11:35:48 +0000 (13:35 +0200)
src/rrd_create.c

index 13f98fb2406c3b89ba72160426617d64e4f94645..6d126c3ba23df373a27c2a0df9a8c874a193c4bf 100644 (file)
@@ -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;