Re: Feature: Fedora Electronic Lab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chitlesh GOORAH wrote:
On 8/14/07, Hans de Goede wrote:
Same here, I can try to fix the segfault to, under pretty much the same
conditions as Kevin.

Calling free() on stuff allocated by Tcl_alloc(). bad bad bad.
Here's a patch.

-The Bug Squad
--- netgen-1.3.7/base/spice.c~	2006-04-11 00:04:49.000000000 +0200
+++ netgen-1.3.7/base/spice.c	2007-08-14 14:45:37.000000000 +0200
@@ -395,7 +395,7 @@
 
       strcpy(subcktname, scan->name);
       free (scan->name);
-      free (scan);
+      FREE (scan);
 
       /* nexttok is now NULL, scan->name points to class */
       Instance(subcktname, instancename);
--- netgen-1.3.7/base/netcmp.c~	2006-04-11 00:04:49.000000000 +0200
+++ netgen-1.3.7/base/netcmp.c	2007-08-14 14:30:16.000000000 +0200
@@ -1086,7 +1086,7 @@
     }
   }
 
-  free (LookupElementList);
+  FREE (LookupElementList);
 }
 
 #else
-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux