Browse code

- tm free lumps fix, thanks to Richard Fogel <rfogel@borderware.com>

Andrei Pelinescu-Onciul authored on 01/07/2004 15:36:05
Showing 2 changed files
... ...
@@ -45,7 +45,7 @@ export makefile_defs
45 45
 VERSION = 0
46 46
 PATCHLEVEL = 8
47 47
 SUBLEVEL =   12
48
-EXTRAVERSION = -1rc1
48
+EXTRAVERSION = -1rc2
49 49
 
50 50
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
51 51
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -60,10 +60,12 @@
60 60
 */
61 61
 inline static void free_via_clen_lump( struct lump **list )
62 62
 {
63
-	struct lump *prev_lump, *lump, *a, *foo;
63
+	struct lump *prev_lump, *lump, *a, *foo, *next;
64 64
 
65
+	next=0;
65 66
 	prev_lump=0;
66
-	for(lump=*list;lump;lump=lump->next) {
67
+	for(lump=*list;lump;lump=next) {
68
+		next=lump->next;
67 69
 		if (lump->type==HDR_VIA||lump->type==HDR_CONTENTLENGTH) {
68 70
 			a=lump->before;
69 71
 			while(a) {