rpms/hardinfo/devel fixcrash.patch,1.1,1.2 hardinfo.spec,1.11,1.12

Adel Gadllah (drago01) fedora-extras-commits at redhat.com
Thu Aug 2 07:53:20 UTC 2007


Author: drago01

Update of /cvs/pkgs/rpms/hardinfo/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20552

Modified Files:
	fixcrash.patch hardinfo.spec 
Log Message:
Fix double free bug

fixcrash.patch:

Index: fixcrash.patch
===================================================================
RCS file: /cvs/pkgs/rpms/hardinfo/devel/fixcrash.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fixcrash.patch	30 Jul 2007 07:39:04 -0000	1.1
+++ fixcrash.patch	2 Aug 2007 07:53:17 -0000	1.2
@@ -1,22 +1,12 @@
 diff -upNr hardinfo-0.4.2.2.orign/shell.c hardinfo-0.4.2.2/shell.c
 --- hardinfo-0.4.2.2.orign/shell.c	2007-07-20 16:45:08.000000000 +0200
-+++ hardinfo-0.4.2.2/shell.c	2007-07-30 09:31:35.000000000 +0200
-@@ -1017,13 +1017,11 @@ module_selected_show_info(ShellModuleEnt
-     /* recreate the iter hash table */
-     if (!reload) {
- 	if (update_tbl) {
--	    g_hash_table_foreach_remove(update_tbl, (GHRFunc) gtk_true,
--					NULL);
--	} else {
--	    update_tbl =
++++ hardinfo-0.4.2.2/shell.c	2007-08-02 09:48:29.000000000 +0200
+@@ -1021,7 +1021,7 @@ module_selected_show_info(ShellModuleEnt
+ 					NULL);
+ 	} else {
+ 	    update_tbl =
 -		g_hash_table_new_full(g_str_hash, g_str_equal, g_free,
--				      g_free);
--	}
-+	       g_hash_table_destroy(update_tbl);
-+        }
-+
-+       update_tbl = g_hash_table_new_full(g_str_hash, g_str_equal,
-+                                           g_free, g_free);
++		g_hash_table_new_full(g_str_hash, g_str_equal, NULL,
+ 				      g_free);
+ 	}
      }
- 
-     if (update_sfusrc) {


Index: hardinfo.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hardinfo/devel/hardinfo.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- hardinfo.spec	31 Jul 2007 07:24:05 -0000	1.11
+++ hardinfo.spec	2 Aug 2007 07:53:17 -0000	1.12
@@ -1,6 +1,6 @@
 Name: hardinfo
 Version: 0.4.2.2
-Release: 11%{?dist}
+Release: 12%{?dist}
 Summary: System Profiler and Benchmark      
 
 Group: Applications/System     
@@ -69,6 +69,9 @@
 
 
 %changelog
+* Thu Aug 02 2007 Adel Gadllah <adel.gadllah at gmail.com> 0.4.2.2-12
+- Try again to fix RH #249794
+
 * Tue Jul 31 2007 Adel Gadllah <adel.gadllah at gmail.com> 0.4.2.2-11
 - Enable debug output
 




More information about the fedora-extras-commits mailing list